Looping problem

Previous topic - Next topic

Darmakwolf

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

spicypixel

Is it CONSTANT bitrate or VARIABLE, I find that variable causes problems.
http://www.spicypixel.net | http://www.facebook.com/SpicyPixel.NET

Comps Owned - ZX.81, ZX.48K, ZX.128K+2, Vic20, C64, Atari-ST, A500.600.1200, PC, Apple Mini-Mac.

Ian Price

#2
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.
I came. I saw. I played.

Darmakwolf

 :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

fuzzy70

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
"Why don't you just make ten louder and make ten be the top number and make that a little louder?"
- "These go to eleven."

This Is Spinal Tap (1984)