Click here to Skip to main content
16,022,362 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
C#
int main ( int argc, char** argv )
{
    if(SDL_Init(SDL_INIT_EVERYTHING)<0)
        return 0;

    TTF_Init();


    pScreen=SDL_SetVideoMode(800,600,32,SDL_DOUBLEBUF|SDL_SWSURFACE);

    if(Mix_OpenAudio( 44100, AUDIO_S16, 2, 4096)<0)
        return 0;


Mix_OpenAudio always return -1,why?
Posted

1 solution

Took me less than a minute to find http://sdl.beuc.net/sdl.wiki/Mix_GetError[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900