Sign in to follow this  
Xabbu

SDL Audio Help*solved*

Recommended Posts

Alright, but now it says it can't find SDL_mixer.h, and im pretty sure i got my linker set up right.

gcc -g -o mixer1 mixer1.c `sdl-config --cflags --libs` -lSDL_mixer

is what you put in the linker, right?

Share this post


Link to post
Share on other sites
LOL, now thats fixed, now i have no errors, and my audio wont play.
heres my play function..

void PlayMuzic()
{
Mix_Music *music = NULL;
music = Mix_LoadMUS("sound1.wav");
Mix_PlayMusic(music, -1);
}

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