hello, i have a serious problem with FMOD 3.75. it won’t loop my MP3 correctly. there is a slight pause between the loop start and end point. even if i try to loop the whole song. why can’t FMOD prebuffer the beginning when it detects that the end of the stream is near and it has to be looped? i simply opened the file with:
and played it with:
i also tried to enlarge the buffer, but it did not do nothing. can anyone help me? thanks in advance.
- Terminator asked 10 years ago
thanks for the tip, but unfortunately it didn’t work. i’ve tried another encoder with the nogap feature, but the gap is still there. maybe it has become shorter now, but it is still there.
i wanted to use fmod to play mp3s as background music in my game. the songs consist of an intro and a loopable part. but if i can’t loop the song without the gap it is meaningless. sigh the windows mediaplayer also has this problem. is it really that hard to loop an mp3??? or has anyone else another idea about what i can do? maybe switch to another format?
okay, i switched to the ogg format. now it works perfectly. However i still would like to know why it didn’t work with mp3.
And i have a final question: how can i calc the loop points?
i hardcoded this for testing purposes:
FSOUND_Stream_SetLoopPoints(Stream, 4 * 44100, 84 * 44100);
but i don’t know how to obtain the number of samples per second at runtime.
Please login first to submit.