0
0

Hello,

i have a problem changing the volume of samples.

i Load three samples:
FSOUND_Init(44100,32,0);//FSOUND_Init(22050,11,0);
FSOUND_SAMPLE *sample = FSOUND_Sample_Load1,”bienefwrv.mp3″, FSOUND_NORMAL, 0, 0);

FSOUND_SAMPLE *klackSound =
FSOUND_Sample_Load(2,”klack.wav”, 0, 0, 0);

FSOUND_SAMPLE *sample1 =
FSOUND_Sample_Load(3,”wonder.mp3″, FSOUND_NORMAL, 0, 0);

FSOUND_Sample_SetMode(sample, FSOUND_LOOP_NORMAL);
FSOUND_Sample_SetMode(sample1, FSOUND_LOOP_NORMAL);
FSOUND_Sample_SetMode(klackSound, FSOUND_LOOP_OFF);

  1. Question: what means the first parameter of FSOUND_SAMPLE_Load ? is it the same like the channel in other functions?

two sounds will directly played the hole time:

FSOUND_PlaySound(1, sample);
FSOUND_PlaySound(3, sample1);

I will change the volume of the other one during runtime.

with:

FSOUND_SetVolume(2,10);
FSOUND_PlaySound(2, klackSound);

but it doesn’t work!

can somebody explain this?

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.