Removed unnecessary warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12255 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
17d82e594c
commit
872cb2d7f6
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user