0
0

I try to play my own data (in fact a portion of WAV file). Following is my code (Win XP and C compiler):

[code:2tfp9vmp]unsigned int Mode= FSOUND_8BITS | FSOUND_MONO | FSOUND_UNSIGNED;

SoundHandle = FSOUND_Sample_Alloc(FSOUND_FREE , ElementsRead, Mode, Frequence,Volume, FSOUND_STEREOPAN, Priority);
Status = FSOUND_Sample_Upload(SoundHandle , (void*)(Buffer), Mode);
ChannelHandle = FSOUND_PlaySound(Channel ,SoundHandle);[/code:2tfp9vmp]

Currently, the output sound is not perfect (some “noise” is added to the sound output). Do I forget something?

  • You must to post comments
0
0

Hi Brett,
Sorry for the delay.

I am not uploading all the wav file : I begin just after the “data” item. In fact I heard the sound but with a kind of noise.
Do you have an example using Custom samples?

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.