Sign in to follow this  
  • entries
    686
  • comments
    1952
  • views
    386296

SDL_mixer

Sign in to follow this  

62 views

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.
Sign in to follow this  


5 Comments


Recommended Comments

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.

Share this comment


Link to comment
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.

Share this comment


Link to comment
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.

Share this comment


Link to comment
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.

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now