Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Minor const-correctness for some functions in FifoPlayer and some Aud…
…ioCommon headers.
  • Loading branch information
lioncash committed Dec 11, 2013
1 parent 101bded commit e0aa674
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Source/Core/AudioCommon/Src/Mixer.h
Expand Up @@ -45,12 +45,12 @@ class CMixer {

// 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;}
// ---------------------

Expand Down
2 changes: 1 addition & 1 deletion Source/Core/AudioCommon/Src/SoundStream.h
Expand Up @@ -33,7 +33,7 @@ class SoundStream
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;
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/AudioCommon/Src/WaveFile.h
Expand Up @@ -39,7 +39,7 @@ class WaveFileWriter

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_
12 changes: 6 additions & 6 deletions Source/Core/Core/Src/FifoPlayer/FifoPlayer.h
Expand Up @@ -29,22 +29,22 @@ class FifoPlayer
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
Expand Down

0 comments on commit e0aa674

Please sign in to comment.