Minor const-correctness for some functions in FifoPlayer and some AudioCommon headers.

This commit is contained in:
Lioncash
2013-12-11 08:43:58 -05:00
parent 101bded6b3
commit e0aa674c72
4 changed files with 10 additions and 10 deletions

View File

@ -45,12 +45,12 @@ public:
// Called from main thread
virtual void PushSamples(const short* samples, unsigned int num_samples);
unsigned int GetSampleRate() {return m_sampleRate;}
unsigned int GetSampleRate() const {return m_sampleRate;}
void SetThrottle(bool use) { m_throttle = use;}
// TODO: do we need this
bool IsHLEReady() { return m_HLEready;}
bool IsHLEReady() const { return m_HLEready;}
void SetHLEReady(bool ready) { m_HLEready = ready;}
// ---------------------

View File

@ -33,7 +33,7 @@ public:
virtual void Stop() {}
virtual void Update() {}
virtual void Clear(bool mute) { m_muted = mute; }
bool IsMuted() { return m_muted; }
bool IsMuted() const { return m_muted; }
virtual void StartLogAudio(const char *filename) {
if (! m_logAudio) {
m_logAudio = true;

View File

@ -39,7 +39,7 @@ public:
void AddStereoSamples(const short *sample_data, u32 count);
void AddStereoSamplesBE(const short *sample_data, u32 count); // big endian
u32 GetAudioSize() { return audio_size; }
u32 GetAudioSize() const { return audio_size; }
};
#endif // _WAVEFILE_H_