Minor const-correctness for some functions in FifoPlayer and some AudioCommon headers.
This commit is contained in:
parent
101bded6b3
commit
e0aa674c72
|
@ -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_
|
||||
|
|
|
@ -29,22 +29,22 @@ public:
|
|||
FifoDataFile *GetFile() { return m_File; }
|
||||
|
||||
u32 GetFrameObjectCount();
|
||||
u32 GetCurrentFrameNum() { return m_CurrentFrame; }
|
||||
u32 GetCurrentFrameNum() const { return m_CurrentFrame; }
|
||||
|
||||
const AnalyzedFrameInfo& GetAnalyzedFrameInfo(u32 frame) { return m_FrameInfo[frame]; }
|
||||
const AnalyzedFrameInfo& GetAnalyzedFrameInfo(u32 frame) const { return m_FrameInfo[frame]; }
|
||||
|
||||
// Frame range
|
||||
u32 GetFrameRangeStart() { return m_FrameRangeStart; }
|
||||
u32 GetFrameRangeStart() const { return m_FrameRangeStart; }
|
||||
void SetFrameRangeStart(u32 start);
|
||||
|
||||
u32 GetFrameRangeEnd() { return m_FrameRangeEnd; }
|
||||
u32 GetFrameRangeEnd() const { return m_FrameRangeEnd; }
|
||||
void SetFrameRangeEnd(u32 end);
|
||||
|
||||
// Object range
|
||||
u32 GetObjectRangeStart() { return m_ObjectRangeStart; }
|
||||
u32 GetObjectRangeStart() const { return m_ObjectRangeStart; }
|
||||
void SetObjectRangeStart(u32 start) { m_ObjectRangeStart = start; }
|
||||
|
||||
u32 GetObjectRangeEnd() { return m_ObjectRangeEnd; }
|
||||
u32 GetObjectRangeEnd() const { return m_ObjectRangeEnd; }
|
||||
void SetObjectRangeEnd(u32 end) { m_ObjectRangeEnd = end; }
|
||||
|
||||
// If enabled then all memory updates happen at once before the first frame
|
||||
|
|
Loading…
Reference in New Issue