mirror of https://github.com/axmolengine/axmol.git
Merge pull request #2090 from jsambuo/linux-audio-getEffectsVolume-fix
SimpleAudioEngine::getEffectsVolume() returns bgm volume on linux
This commit is contained in:
commit
160536d4f2
|
@ -274,6 +274,7 @@ float FmodAudioPlayer::getEffectsVolume() {
|
|||
pSystem->update();
|
||||
FMOD_RESULT result = pChannelGroup->getVolume(&fVolumn);
|
||||
ERRCHECKWITHEXIT(result);
|
||||
return fVolumn;
|
||||
}
|
||||
|
||||
void FmodAudioPlayer::setEffectsVolume(float volume) {
|
||||
|
|
|
@ -126,7 +126,7 @@ void SimpleAudioEngine::setBackgroundMusicVolume(float volume) {
|
|||
}
|
||||
|
||||
float SimpleAudioEngine::getEffectsVolume() {
|
||||
return oAudioPlayer->getBackgroundMusicVolume();
|
||||
return oAudioPlayer->getEffectsVolume();
|
||||
}
|
||||
|
||||
void SimpleAudioEngine::setEffectsVolume(float volume) {
|
||||
|
|
Loading…
Reference in New Issue