Jump to content
  • Advertisement
Sign in to follow this  
Narcis

SDL_Mixer - Mix_Music Declaration

This topic is 4306 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I've been playing with SDL related libraries for a while, and now that I'm playing with SDL_Mixer, I have a problem that I can't find a solution for. The program crashes when I try to declare Mix_Music, I've tested this several times and boiled it down to...
Mix_Music *bgmusic;
... causes the crash. Any hints would be apreciated. Edit: Also, for those who suspect it, no, there arn't any errors :) Edit 2: Mix_OpenAudio(22050, MIX_DEFAULT_FORMAT, 2, 1024); - Forgot to mention it. Thats the OpenAudio line I'm using. Another: Mix_Chunk also crashes. I suspect declaring any data type with mixer is going to cause it to crash. Final Edit: Problem Solved. Yay me. [Edited by - Narcis on September 6, 2006 6:36:19 AM]

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!