0
0

Hello, our task force Crazy Team creates a game which name’s Crazy Galaxy (http://crazygalaxy.free.fr).
The aim of the game is to win a race in space.
But now we need to load sound in ‘sample’ mode but not in ‘stream’.
The following code don’t make mistake, but we can’t hear any sound.

[code:169b0xwp]
FSOUND_Init(44100, 1, 0);
click: = FSOUND_Sample_Load(FSOUND_FREE, ‘click.wav’, 1, 0, 0); FSOUND_PlaySound(1, click);
FSOUND_Sample_Free(click);
[/code:169b0xwp]

I thank you by advance for your fast answer, sorry for my poor english level.

  • You must to post comments
0
0

now u loaded the sample with FSOUND_FREE but while playing u have specified channel 1 explicitly….use FSOUND_PlaySound(FSOUND_FREE, click);….

  • You must to post comments
0
0

I think the real problem is that he freed the sample as soon as he played it, making it stop, though you are right he should be using FSOUND_FREE

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.