diff --git a/src/audio/music.hpp b/src/audio/music.hpp index 0920f7deb..04bf80358 100644 --- a/src/audio/music.hpp +++ b/src/audio/music.hpp @@ -30,7 +30,7 @@ public: virtual bool stopMusic () = 0; virtual bool pauseMusic () = 0; virtual bool resumeMusic () = 0; - virtual bool volumeMusic (float gain) = 0; + virtual void volumeMusic (float gain) = 0; virtual void updateFading(float percent) = 0; virtual void updateFaster(float percent, float pitch) = 0; virtual void update () = 0; diff --git a/src/audio/music_ogg.cpp b/src/audio/music_ogg.cpp index a7d094a02..dfb488e41 100644 --- a/src/audio/music_ogg.cpp +++ b/src/audio/music_ogg.cpp @@ -207,7 +207,7 @@ bool MusicOggStream::resumeMusic() } // resumeMusic //----------------------------------------------------------------------------- -bool MusicOggStream::volumeMusic(float gain) +void MusicOggStream::volumeMusic(float gain) { alSourcef(m_soundSource, AL_GAIN, gain); } // volumeMusic diff --git a/src/audio/music_ogg.hpp b/src/audio/music_ogg.hpp index 07d1b0ca5..a20e85337 100644 --- a/src/audio/music_ogg.hpp +++ b/src/audio/music_ogg.hpp @@ -55,7 +55,7 @@ public: virtual bool stopMusic(); virtual bool pauseMusic(); virtual bool resumeMusic(); - virtual bool volumeMusic (float gain); + virtual void volumeMusic (float gain); protected: bool empty();