AudioCommon: Add missing override specifiers

Also removes unnecessary virtual keywords.
This commit is contained in:
Lioncash 2015-05-24 06:02:30 -04:00
parent 5213d85118
commit 07d4dbe657
9 changed files with 42 additions and 45 deletions

View File

@ -33,17 +33,15 @@ class AOSound final : public SoundStream
short realtimeBuffer[1024 * 1024]; short realtimeBuffer[1024 * 1024];
public: public:
virtual bool Start() override; bool Start() override;
void SoundLoop() override;
virtual void SoundLoop() override; void Stop() override;
void Update() override;
virtual void Stop() override;
static bool isValid() static bool isValid()
{ {
return true; return true;
} }
virtual void Update() override;
#endif #endif
}; };

View File

@ -21,17 +21,16 @@ public:
AlsaSound(); AlsaSound();
virtual ~AlsaSound(); virtual ~AlsaSound();
virtual bool Start() override; bool Start() override;
virtual void SoundLoop() override; void SoundLoop() override;
virtual void Stop() override; void Stop() override;
void Update() override;
static bool isValid() static bool isValid()
{ {
return true; return true;
} }
virtual void Update() override;
private: private:
enum class ALSAThreadStatus enum class ALSAThreadStatus
{ {

View File

@ -14,18 +14,17 @@ class CoreAudioSound final : public SoundStream
{ {
#ifdef __APPLE__ #ifdef __APPLE__
public: public:
virtual bool Start(); bool Start() override;
virtual void SetVolume(int volume); void SetVolume(int volume) override;
virtual void SoundLoop(); void SoundLoop() override;
virtual void Stop(); void Stop() override;
void Update() override;
static bool isValid() static bool isValid()
{ {
return true; return true;
} }
virtual void Update();
private: private:
AudioUnit audioUnit; AudioUnit audioUnit;
int m_volume; int m_volume;

View File

@ -15,11 +15,12 @@ class NullSound final : public SoundStream
short realtimeBuffer[BUF_SIZE / sizeof(short)]; short realtimeBuffer[BUF_SIZE / sizeof(short)];
public: public:
virtual bool Start() override; bool Start() override;
virtual void SoundLoop() override; void SoundLoop() override;
virtual void SetVolume(int volume) override; void SetVolume(int volume) override;
virtual void Stop() override; void Stop() override;
virtual void Clear(bool mute) override; void Clear(bool mute) override;
void Update() override;
static bool isValid() { return true; } static bool isValid() { return true; }
virtual void Update() override;
}; };

View File

@ -60,13 +60,14 @@ public:
{ {
} }
virtual bool Start() override; bool Start() override;
virtual void SoundLoop() override; void SoundLoop() override;
virtual void SetVolume(int volume) override; void SetVolume(int volume) override;
virtual void Stop() override; void Stop() override;
virtual void Clear(bool mute) override; void Clear(bool mute) override;
void Update() override;
static bool isValid() { return true; } static bool isValid() { return true; }
virtual void Update() override;
private: private:
std::thread thread; std::thread thread;

View File

@ -13,8 +13,8 @@ class OpenSLESStream final : public SoundStream
{ {
#ifdef ANDROID #ifdef ANDROID
public: public:
virtual bool Start(); bool Start() override;
virtual void Stop(); void Stop() override;
static bool isValid() { return true; } static bool isValid() { return true; }
private: private:

View File

@ -20,13 +20,12 @@ class PulseAudio final : public SoundStream
public: public:
PulseAudio(); PulseAudio();
virtual bool Start() override; bool Start() override;
virtual void Stop() override; void Stop() override;
void Update() override;
static bool isValid() { return true; } static bool isValid() { return true; }
virtual void Update() override;
void StateCallback(pa_context *c); void StateCallback(pa_context *c);
void WriteCallback(pa_stream *s, size_t length); void WriteCallback(pa_stream *s, size_t length);
void UnderflowCallback(pa_stream *s); void UnderflowCallback(pa_stream *s);

View File

@ -54,12 +54,12 @@ public:
XAudio2(); XAudio2();
virtual ~XAudio2(); virtual ~XAudio2();
virtual bool Start(); bool Start() override;
virtual void Stop(); void Stop() override;
virtual void Update(); void Update() override;
virtual void Clear(bool mute); void Clear(bool mute) override;
virtual void SetVolume(int volume); void SetVolume(int volume) override;
static bool isValid() { return InitLibrary(); } static bool isValid() { return InitLibrary(); }
#endif #endif

View File

@ -61,12 +61,12 @@ public:
XAudio2_7(); XAudio2_7();
virtual ~XAudio2_7(); virtual ~XAudio2_7();
virtual bool Start(); bool Start() override;
virtual void Stop(); void Stop() override;
virtual void Update(); void Update() override;
virtual void Clear(bool mute); void Clear(bool mute) override;
virtual void SetVolume(int volume); void SetVolume(int volume) override;
static bool isValid() { return InitLibrary(); } static bool isValid() { return InitLibrary(); }
#endif #endif