Mercurial > sdl-ios-xcode
diff src/audio/SDL_audio.c @ 398:d219b0e02f5f
Added Atari audio support (thanks Patrice!)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 10 Jun 2002 20:42:53 +0000 |
parents | fd93a09655e3 |
children | dad72daf44b3 |
line wrap: on
line diff
--- a/src/audio/SDL_audio.c Mon Jun 10 20:42:02 2002 +0000 +++ b/src/audio/SDL_audio.c Mon Jun 10 20:42:53 2002 +0000 @@ -83,6 +83,9 @@ #ifdef ENABLE_AHI &AHI_bootstrap, #endif +#ifdef MINTAUDIO_SUPPORT + &MINTAUDIO_bootstrap, +#endif #ifdef DISKAUD_SUPPORT &DISKAUD_bootstrap, #endif @@ -378,6 +381,9 @@ #ifdef macintosh /* FIXME: Need to implement PPC interrupt asm for SDL_LockAudio() */ #else +#if defined(__MINT__) && !defined(ENABLE_THREADS) + /* Uses interrupt driven audio, without thread */ +#else /* Create a semaphore for locking the sound buffers */ audio->mixer_lock = SDL_CreateMutex(); if ( audio->mixer_lock == NULL ) { @@ -385,7 +391,8 @@ SDL_CloseAudio(); return(-1); } -#endif +#endif /* __MINT__ */ +#endif /* macintosh */ /* Calculate the silence and size of the audio specification */ SDL_CalculateAudioSpec(desired);