[SDL] Testing multiple keyboards with SDL on Linux

Sik the hedgehog sik.the.hedgehog at gmail.com
Thu Mar 28 08:53:57 PDT 2013


SDL_InitSubSystem(SDL_INIT_AUDIO);


    if(Mix_OpenAudio(22050, AUDIO_S16SYS , 2, 2048)) {
    	  LOGD("Unable to open audio!");
    	  exit(1);
    	}

    Mix_Music *music;
    music=Mix_LoadMUS("Initiate.ogg");
    if ( music == NULL )
    {
    	LOGD("No music file found");
    }

    if ( ! Mix_PlayingMusic() )
	{
		Mix_PlayMusic(music, -1);
	}




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20130312/b700bd57/attachment-0009.htm>


More information about the SDL mailing list