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,16 +246,8 @@ bool MusicOggStream::resumeMusic()
|
|||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
void MusicOggStream::volumeMusic(float gain)
|
void MusicOggStream::volumeMusic(float gain)
|
||||||
{
|
{
|
||||||
if (gain > 1.0f)
|
if (gain > 1.0f) gain = 1.0f;
|
||||||
{
|
if (gain < 0.0f) gain = 0.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);
|
|
||||||
}
|
|
||||||
|
|
||||||
alSourcef(m_soundSource, AL_GAIN, gain);
|
alSourcef(m_soundSource, AL_GAIN, gain);
|
||||||
} // volumeMusic
|
} // volumeMusic
|
||||||
|
Loading…
x
Reference in New Issue
Block a user