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?
- Yass asked 12 years ago
- You must login to post comments
Please login first to submit.