Sign in to follow this  
Narcis

SDL_Mixer - Mix_Music Declaration

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

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

Sign in to follow this