SDL_mixer

Published December 10, 2006
Advertisement
Well, I now have SDL_mixer working in the game engine. I converted Trapper Zoid's level 1 song to a mp3 file, loaded it into the game, and it played just fine.

Well, not exactly. The song plays fine, but playing music causes the game to shudder. It basically leads to instances where the game will lag for double the normal time on one frame. So yeah, it needs to be fixed.

I'm going to test sound effects to see if they work as intended. Hopefully they will, because then I'll only have to fix half of the audio code.
Previous Entry Da Orks on video
Next Entry Lets try FMOD
0 likes 5 comments

Comments

Trapper Zoid
Nice to hear that the music works - but it's a shame about the shuddering. I haven't tried SDL_Mixer yet myself so I'm not sure if I can recommend a solution to the problem.

I'm going to try and finish up the pirate themed music this week so you'll have something else to play with. I haven't made up my mind what to use for the Blorp level yet - I've got a few ideas but I might use some of them for Ice Slider.
December 10, 2006 03:10 PM
Stompy9999
It would be a shame if the problem was with SDL_mixer, but then again, there's always FMOD.

You can send me the file when you're done in IT format. I found a program that can easily convert IT files to mp3s.
December 10, 2006 04:29 PM
Trapper Zoid
Doesn't SDL_mixer natively run IT files? I'm fairly sure it supports MOD and XM, but I assumed it could play IT as well.
December 10, 2006 05:01 PM
Stompy9999
It didn't seem to be able to play the file when in IT format. According to my log file, it loaded the music file, but it didn't actually play it. So, I downloaded a program to convert the file.
December 10, 2006 07:22 PM
Trapper Zoid
Quote:Original post by Stompy9999
It didn't seem to be able to play the file when in IT format. According to my log file, it loaded the music file, but it didn't actually play it. So, I downloaded a program to convert the file.

Hmm, that's a bit annoying. I'm sure it supports some of those formats, but maybe not IT. I'll eventually try the same for Ice Slider and see how to get it working. I can save the files in a variety of tracker formats so I'm sure one of them will work - I'm pretty sure SDL does support one of the tracker formats.
December 11, 2006 02:12 AM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement
Advertisement