Well for a certain MP3 for some weird reason takes ages to loop. It gets to the end, then after like a whole 3 minutes of silence it loops. In any audio player it loops fine and there's no silence at the end, I checked in Audacity. I even tried re-exporting it at different bitrates. Attached is the audio in question along with the code I'm using to play it. I love this song too - it's a gem from the HVSC Commodore SID compilation (chiptune.) :giveup:
oh also, i'm using GLBasic IDE 11.322
Is it CONSTANT bitrate or VARIABLE, I find that variable causes problems.
I've converted the .MP3 with AIFF MP3 converter, which not only reduced it's size to 2.5MB but it now loops properly in GLBasic.
i used these settings -
Bit Rate 128kbps
Sample Rate 44100 Hz
Stereo sound.
:booze:
Cheers, that seemed to work - thanks! Sounds like Gernot has to fix a few audio rendering things... perhaps SDL is to blame??? On a side note: I'm close to releasing a finished game finally :D
Variable bitrate mp3's can be a pain in the arse sometimes, I remember having problems with them occasionally on a phone I used to have as well as a car stereo.
128K constant bitrate is more than good enough for majority of game music, a lot of chiptune type music is fine at 96k as well & it's just a case of listening to the result & see if you can hear sound artefacts. Just make sure you generate each one from the pure source (like a wave file or directly from the program) & not from a generated mp3, otherwise you are re-compressing something thats already been compressed & the quality will suffer.
Lee