Hi,
I have a really hard time figuring out how to make a sound loop perfectly. I tried OSLib's inbuilt functions with BGM (oslib special sound format) and MP3, and I can always hear the gap between 2 loops. I searched other ways to play my MP3 in a loop and got a bit lost... I *think* all MP3 players do it the same way: they fill a buffer of a predefined size with decoded frames and when at the end of the file, fill the rest of the buffer with 0's, thus the non perfect looping I get.
Does something exist that would play my sound in a perfect loop? I need something with the source available or appropriate hooks because I want to synchronize other objects with the sound, and of course I want it to be compatible with all PSP FW versions.
As I'm pretty sure nothing like that is available, can someone teach me / help me with writing such a thing, as I'm very uncomfortable with so low-level & C (not ++) code.
If you want to test, here is the MP3 I use: http://www.newgrounds.com/audio/listen/59771
It loops perfectly in Itunes & winamp (but not in this flash app).
Thanks.
Sound: perfect loop
WHAT??? What are you guys speaking about?? Every compression technique under the sun does divide data into chuncks; it's up to the decoder to present data continuously. If i correctly understand the original question, the clue is on buffering techniques: i pointed out the lack of proper buffer handling in pspsdk sound library time ago. However, double and triple buffering are not necessarly related to PSP: i bet you'll have better luck finding out how to implement such techniques in a general purpose programming site.MP3 is NOT gapless