0
0

Hey ive been trying to lower the volume of one of my sounds.. i cant get it to work

//load the sounds
m_backSound = FSOUND_Sample_Load(2,"sounds/ingame.wav",FSOUND_LOOP_NORMAL,0);

FSOUND_SetVolume(2 , 1);
FSOUND_PlaySound(2, m_backSound);

it plays at the same volume no matter what value I set it to… can somone help please?
thanks
ASH

  • You must to post comments
0
0

Hi,
Just swap the function, also, usualy it’s better to do like this (at least i does work well in my case) :

return_channel = FSOUND_PlaySound(2, m_backSound);

if (return_channel>=0)
{
FSOUND_SetVolume( return_channel , 1);
}

Hope it will help

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.