0
0

Kinda new to fmod. I am using what I am think is the simplest way to play a mp3, but I am getting crackling everyone one to two second. I have tried using a buffer that doesnt seem to help. I have also tried playing around with the different options for FSOUND_Stream_Open.

Just wondering if someone could point me in the right direction of what I should be playing with to adjust. I am running Gentoo Linux/Kernel2.6.11. XMMS play mp3 just fine without the crackling. If anyone would like to see the code

if( FSOUND_GetVersion() < FMOD_VERSION)
{
printf(“Error: You are using the wrong DLL version! You should be using FMOD %.02f\n”, FMOD_VERSION);
exit(1);
}

FSOUND_Stream_SetBufferSize(2000);

if(!FSOUND_Init(44100, 64, 0))
{
    printf("%s\n", FMOD_ErrorString(FSOUND_GetError()));
    exit(1);
}
loadSong();
mod = FSOUND_Stream_Open(file, FSOUND_HW2D, 0, 0);
if(!mod)
{
    printf("%s\n", FMOD_ErrorString(FSOUND_GetError()));
    exit(1);
}
FSOUND_Stream_Play(1, mod);
  • You must to post comments
0
0

f you do the following i would suspect it would fix it – well not fix it, but work around it.
Add FSOUND_HW2D to the stream open.
before FSOUND_Init call FSOUND_SetBufferSize(200)
before opening the stream call FSOUND_Stream_SetBufferSize(1000);

I found this is the forum, I havent given it a real run through yet, but it seems to have done the job.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.