# 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]

## Create an account

Register a new account

• ### Forum Statistics

• Total Topics
628395
• Total Posts
2982437

• 10
• 9
• 19
• 24
• 10