Mercurial > sdl-ios-xcode
diff src/audio/SDL_audio.c @ 3976:8582c6a5ca16 SDL-1.2
Added initial support for Nintendo DS, based on the work by Troy Davis (GPF)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 25 Jun 2007 00:50:20 +0000 |
parents | e85e65aec22f |
children | 6831b8723a85 |
line wrap: on
line diff
--- a/src/audio/SDL_audio.c Sun Jun 24 18:26:35 2007 +0000 +++ b/src/audio/SDL_audio.c Mon Jun 25 00:50:20 2007 +0000 @@ -101,6 +101,9 @@ #if SDL_AUDIO_DRIVER_DC &DCAUD_bootstrap, #endif +#if SDL_AUDIO_DRIVER_NDS + &NDSAUD_bootstrap, +#endif #if SDL_AUDIO_DRIVER_MMEAUDIO &MMEAUDIO_bootstrap, #endif @@ -470,10 +473,7 @@ return(-1); } -#if defined(__MACOS__) || (defined(__RISCOS__) && SDL_THREADS_DISABLED) - /* FIXME: Need to implement PPC interrupt asm for SDL_LockAudio() */ -#else -#if defined(__MINT__) && SDL_THREADS_DISABLED +#if SDL_THREADS_DISABLED /* Uses interrupt driven audio, without thread */ #else /* Create a semaphore for locking the sound buffers */ @@ -483,8 +483,7 @@ SDL_CloseAudio(); return(-1); } -#endif /* __MINT__ */ -#endif /* __MACOS__ */ +#endif /* SDL_THREADS_DISABLED */ /* Calculate the silence and size of the audio specification */ SDL_CalculateAudioSpec(desired);