mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-17 23:07:54 +00:00
audio_out: Mark several functions as const
These don't affect class state, so we can mark them as such.
This commit is contained in:
parent
12b4a200e9
commit
1e6ce3d3c9
4 changed files with 17 additions and 16 deletions
|
@ -102,7 +102,7 @@ public:
|
|||
*
|
||||
* @return The current volume.
|
||||
*/
|
||||
f32 GetVolume();
|
||||
f32 GetVolume() const;
|
||||
|
||||
/**
|
||||
* Set the system volume.
|
||||
|
@ -117,21 +117,21 @@ public:
|
|||
* @param tag - The tag to search for.
|
||||
* @return True if the buffer is in the system, otherwise false.
|
||||
*/
|
||||
bool ContainsAudioBuffer(u64 tag);
|
||||
bool ContainsAudioBuffer(u64 tag) const;
|
||||
|
||||
/**
|
||||
* Get the maximum number of buffers.
|
||||
*
|
||||
* @return The maximum number of buffers.
|
||||
*/
|
||||
u32 GetBufferCount();
|
||||
u32 GetBufferCount() const;
|
||||
|
||||
/**
|
||||
* Get the total played sample count for this audio out.
|
||||
*
|
||||
* @return The played sample count.
|
||||
*/
|
||||
u64 GetPlayedSampleCount();
|
||||
u64 GetPlayedSampleCount() const;
|
||||
|
||||
private:
|
||||
/// The AudioOut::Manager this audio out is registered with
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue