diff --git a/src/audio/AL/ALAudio.cpp b/src/audio/AL/ALAudio.cpp index 0b4e76a3..242b421b 100644 --- a/src/audio/AL/ALAudio.cpp +++ b/src/audio/AL/ALAudio.cpp @@ -232,7 +232,7 @@ State ALSpeaker::getState() const { } float ALSpeaker::getVolume() const { - return AL::getSourcef(source, AL_GAIN); + return volume; } void ALSpeaker::setVolume(float volume) { @@ -258,6 +258,7 @@ void ALSpeaker::setLoop(bool loop) { void ALSpeaker::play() { paused = false; stopped = false; + AL_CHECK(alSourcef(source, AL_GAIN, 0.0f)); AL_CHECK(alSourcePlay(source)); }