forked from mia/Aegisub
Delete pointless empty destructor in DummyAudioProvider
Originally committed to SVN as r6103.
This commit is contained in:
parent
a5fce1d1be
commit
975bb7b26f
2 changed files with 0 additions and 16 deletions
|
@ -39,11 +39,6 @@
|
||||||
#include "audio_provider_dummy.h"
|
#include "audio_provider_dummy.h"
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
|
|
||||||
|
|
||||||
/// @brief Constructor
|
|
||||||
/// @param dur_ms
|
|
||||||
/// @param _noise
|
|
||||||
///
|
|
||||||
DummyAudioProvider::DummyAudioProvider(unsigned long dur_ms, bool _noise) {
|
DummyAudioProvider::DummyAudioProvider(unsigned long dur_ms, bool _noise) {
|
||||||
noise = _noise;
|
noise = _noise;
|
||||||
channels = 1;
|
channels = 1;
|
||||||
|
@ -52,16 +47,6 @@ DummyAudioProvider::DummyAudioProvider(unsigned long dur_ms, bool _noise) {
|
||||||
num_samples = (int64_t)dur_ms * sample_rate / 1000;
|
num_samples = (int64_t)dur_ms * sample_rate / 1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// @brief Destructor
|
|
||||||
///
|
|
||||||
DummyAudioProvider::~DummyAudioProvider() {
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @brief Get audio
|
|
||||||
/// @param buf
|
|
||||||
/// @param start
|
|
||||||
/// @param count
|
|
||||||
///
|
|
||||||
void DummyAudioProvider::GetAudio(void *buf, int64_t, int64_t count) const {
|
void DummyAudioProvider::GetAudio(void *buf, int64_t, int64_t count) const {
|
||||||
short *workbuf = (short*)buf;
|
short *workbuf = (short*)buf;
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,6 @@ class DummyAudioProvider : public AudioProvider {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
DummyAudioProvider(unsigned long dur_ms, bool _noise);
|
DummyAudioProvider(unsigned long dur_ms, bool _noise);
|
||||||
~DummyAudioProvider();
|
|
||||||
|
|
||||||
bool AreSamplesNativeEndian() const { return true; }
|
bool AreSamplesNativeEndian() const { return true; }
|
||||||
void GetAudio(void *buf, int64_t start, int64_t count) const;
|
void GetAudio(void *buf, int64_t start, int64_t count) const;
|
||||||
|
|
Loading…
Reference in a new issue