[raudio] Implement GetMasterVolume() (#3434)
It feels a little unfinished when you can SetMasterVolume but can't really Get it. So to finish the symmetry here is the GetMasterVolume implementation.
This commit is contained in:
parent
80432fde62
commit
d7d04a07a2
2 changed files with 9 additions and 0 deletions
|
@ -536,6 +536,14 @@ void SetMasterVolume(float volume)
|
|||
ma_device_set_master_volume(&AUDIO.System.device, volume);
|
||||
}
|
||||
|
||||
// Get master volume (listener)
|
||||
float GetMasterVolume(void)
|
||||
{
|
||||
float volume = 0.0f;
|
||||
ma_device_get_master_volume(&AUDIO.System.device, &volume);
|
||||
return volume;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
// Module Functions Definition - Audio Buffer management
|
||||
//----------------------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue