mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 05:40:01 -06:00
Minor const-correctness for some functions in FifoPlayer and some AudioCommon headers.
This commit is contained in:
@ -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;}
|
||||
// ---------------------
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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_
|
||||
|
Reference in New Issue
Block a user