Remove unused private variables in AudioProvider
Originally committed to SVN as r6222.
This commit is contained in:
parent
4e06c198d0
commit
a927672c27
2 changed files with 7 additions and 29 deletions
|
@ -56,17 +56,6 @@
|
||||||
#include "frame_main.h"
|
#include "frame_main.h"
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
|
|
||||||
/// @brief Constructor
|
|
||||||
///
|
|
||||||
AudioProvider::AudioProvider() : raw(NULL) {
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @brief Destructor
|
|
||||||
///
|
|
||||||
AudioProvider::~AudioProvider() {
|
|
||||||
delete[] raw;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @brief Get audio with volume
|
/// @brief Get audio with volume
|
||||||
/// @param buf
|
/// @param buf
|
||||||
/// @param start
|
/// @param start
|
||||||
|
@ -102,12 +91,7 @@ void AudioProvider::GetAudioWithVolume(void *buf, int64_t start, int64_t count,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// @brief Get provider
|
AudioProvider *AudioProviderFactory::GetProvider(wxString const& filename, int cache) {
|
||||||
/// @param filename
|
|
||||||
/// @param cache
|
|
||||||
/// @return
|
|
||||||
///
|
|
||||||
AudioProvider *AudioProviderFactory::GetProvider(wxString filename, int cache) {
|
|
||||||
AudioProvider *provider = NULL;
|
AudioProvider *provider = NULL;
|
||||||
bool found = false;
|
bool found = false;
|
||||||
std::string msg;
|
std::string msg;
|
||||||
|
|
|
@ -48,16 +48,7 @@
|
||||||
///
|
///
|
||||||
/// DOCME
|
/// DOCME
|
||||||
class AudioProvider {
|
class AudioProvider {
|
||||||
private:
|
|
||||||
|
|
||||||
/// DOCME
|
|
||||||
char *raw;
|
|
||||||
|
|
||||||
/// DOCME
|
|
||||||
int raw_len;
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
/// DOCME
|
/// DOCME
|
||||||
int channels;
|
int channels;
|
||||||
|
|
||||||
|
@ -75,8 +66,7 @@ protected:
|
||||||
wxString filename;
|
wxString filename;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
AudioProvider();
|
virtual ~AudioProvider() { }
|
||||||
virtual ~AudioProvider();
|
|
||||||
|
|
||||||
virtual wxString GetFilename() const { return filename; };
|
virtual wxString GetFilename() const { return filename; };
|
||||||
virtual void GetAudio(void *buf, int64_t start, int64_t count) const = 0;
|
virtual void GetAudio(void *buf, int64_t start, int64_t count) const = 0;
|
||||||
|
@ -100,7 +90,11 @@ public:
|
||||||
class AudioProviderFactory : public Factory1<AudioProvider, wxString> {
|
class AudioProviderFactory : public Factory1<AudioProvider, wxString> {
|
||||||
public:
|
public:
|
||||||
static void RegisterProviders();
|
static void RegisterProviders();
|
||||||
static AudioProvider *GetProvider(wxString filename, int cache=-1);
|
|
||||||
|
/// Get a provider for the file
|
||||||
|
/// @param filename URI to open
|
||||||
|
/// @param cache Caching mode
|
||||||
|
static AudioProvider *GetProvider(wxString const& filename, int cache=-1);
|
||||||
};
|
};
|
||||||
|
|
||||||
DEFINE_BASE_EXCEPTION_NOINNER(AudioProviderError, agi::Exception)
|
DEFINE_BASE_EXCEPTION_NOINNER(AudioProviderError, agi::Exception)
|
||||||
|
|
Loading…
Reference in a new issue