forked from mia/Aegisub
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 "main.h"
|
||||
|
||||
/// @brief Constructor
|
||||
///
|
||||
AudioProvider::AudioProvider() : raw(NULL) {
|
||||
}
|
||||
|
||||
/// @brief Destructor
|
||||
///
|
||||
AudioProvider::~AudioProvider() {
|
||||
delete[] raw;
|
||||
}
|
||||
|
||||
/// @brief Get audio with volume
|
||||
/// @param buf
|
||||
/// @param start
|
||||
|
@ -102,12 +91,7 @@ void AudioProvider::GetAudioWithVolume(void *buf, int64_t start, int64_t count,
|
|||
}
|
||||
}
|
||||
|
||||
/// @brief Get provider
|
||||
/// @param filename
|
||||
/// @param cache
|
||||
/// @return
|
||||
///
|
||||
AudioProvider *AudioProviderFactory::GetProvider(wxString filename, int cache) {
|
||||
AudioProvider *AudioProviderFactory::GetProvider(wxString const& filename, int cache) {
|
||||
AudioProvider *provider = NULL;
|
||||
bool found = false;
|
||||
std::string msg;
|
||||
|
|
|
@ -48,16 +48,7 @@
|
|||
///
|
||||
/// DOCME
|
||||
class AudioProvider {
|
||||
private:
|
||||
|
||||
/// DOCME
|
||||
char *raw;
|
||||
|
||||
/// DOCME
|
||||
int raw_len;
|
||||
|
||||
protected:
|
||||
|
||||
/// DOCME
|
||||
int channels;
|
||||
|
||||
|
@ -75,8 +66,7 @@ protected:
|
|||
wxString filename;
|
||||
|
||||
public:
|
||||
AudioProvider();
|
||||
virtual ~AudioProvider();
|
||||
virtual ~AudioProvider() { }
|
||||
|
||||
virtual wxString GetFilename() const { return filename; };
|
||||
virtual void GetAudio(void *buf, int64_t start, int64_t count) const = 0;
|
||||
|
@ -100,7 +90,11 @@ public:
|
|||
class AudioProviderFactory : public Factory1<AudioProvider, wxString> {
|
||||
public:
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue