From 872cb2d7f6e15aa2881ef56f8a2e3876ba6aaa47 Mon Sep 17 00:00:00 2001 From: hikerstk Date: Mon, 10 Dec 2012 23:31:34 +0000 Subject: [PATCH] Removed unnecessary warning. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12255 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/audio/music_ogg.cpp | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/src/audio/music_ogg.cpp b/src/audio/music_ogg.cpp index b7832d313..382309c9f 100644 --- a/src/audio/music_ogg.cpp +++ b/src/audio/music_ogg.cpp @@ -246,17 +246,9 @@ bool MusicOggStream::resumeMusic() //----------------------------------------------------------------------------- void MusicOggStream::volumeMusic(float gain) { - if (gain > 1.0f) - { - gain = 1.0f; - fprintf(stderr, "WARNING: MusicOggStream::volumeMusic(%f) is out of acceptable [0, 1] range\n", gain); - } - if (gain < 0.0f) - { - gain = 0.0f; - fprintf(stderr, "WARNING: MusicOggStream::volumeMusic(%f) is out of acceptable [0, 1] range\n", gain); - } - + if (gain > 1.0f) gain = 1.0f; + if (gain < 0.0f) gain = 0.0f; + alSourcef(m_soundSource, AL_GAIN, gain); } // volumeMusic