src/audio/mint/SDL_mintaudio_mcsn.c
changeset 1095 f10892fa2e48
parent 962 176240cf4405
child 1106 524fd51f5d2c
equal deleted inserted replaced
1094:5012b97142ac 1095:f10892fa2e48
    80 
    80 
    81 /*--- Audio driver bootstrap functions ---*/
    81 /*--- Audio driver bootstrap functions ---*/
    82 
    82 
    83 static int Audio_Available(void)
    83 static int Audio_Available(void)
    84 {
    84 {
       
    85 	unsigned long dummy;
    85 	const char *envr = getenv("SDL_AUDIODRIVER");
    86 	const char *envr = getenv("SDL_AUDIODRIVER");
       
    87 
       
    88 	/* We can't use XBIOS in interrupt under MiNT */
       
    89 	if (Getcookie(C_MiNT, &dummy) == C_FOUND) {
       
    90 		return(0);
       
    91 	}
    86 
    92 
    87 	/* Check if user asked a different audio driver */
    93 	/* Check if user asked a different audio driver */
    88 	if ((envr) && (strcmp(envr, MINT_AUDIO_DRIVER_NAME)!=0)) {
    94 	if ((envr) && (strcmp(envr, MINT_AUDIO_DRIVER_NAME)!=0)) {
    89 		DEBUG_PRINT((DEBUG_NAME "user asked a different audio driver\n"));
    95 		DEBUG_PRINT((DEBUG_NAME "user asked a different audio driver\n"));
    90 		return(0);
    96 		return(0);