mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-08-04 03:15:59 -04:00
Sort out Chunk::{Get,Set}Volume
This commit is contained in:
parent
4d4fcf5929
commit
b7eb867aa5
@ -61,8 +61,12 @@ Mix_Chunk* Chunk::Get() const {
|
||||
return chunk_;
|
||||
}
|
||||
|
||||
int Chunk::Volume(int volume) {
|
||||
int Chunk::SetVolume(int volume) {
|
||||
return Mix_VolumeChunk(chunk_, volume);
|
||||
}
|
||||
|
||||
int Chunk::GetVolume() const {
|
||||
return Mix_VolumeChunk(chunk_, -1);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -142,7 +142,17 @@ public:
|
||||
/// \see https://www.libsdl.org/projects/SDL_mixer/docs/SDL_mixer.html#SEC23
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
int Volume(int volume);
|
||||
int SetVolume(int volume);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Get volume of a chunk
|
||||
///
|
||||
/// \returns Current volume setting
|
||||
///
|
||||
/// \see https://www.libsdl.org/projects/SDL_mixer/docs/SDL_mixer.html#SEC23
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
int GetVolume() const;
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user