0
0

I want to get the volume of a certain channel, so I call FSOUND_GetVolume(channel). But this method returns 0 when volume is 0 or when this method failed ! In the docs it says that you have to check if it is a real error using FSOUND_GetError(). But which error do you get in this sitation ? Is it a FMOD_ERR_INVALID_PARAM, so I can do something like this :

[code:3562lk5p]float volume = FSOUND_GetVolume(channel);
if(volume==0)
{
if(FSOUND_GetError()==FMOD_ERR_INVALID_PARAM))
{
//method failed
}
else
{
//volume == 0
}
}[/code:3562lk5p] Are am I wrong ?

Greetz,

caroline

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.