Mercurial > sdl-ios-xcode
comparison 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 |
comparison
equal
deleted
inserted
replaced
397:283d348cb624 | 398:d219b0e02f5f |
---|---|
80 #ifdef _AIX | 80 #ifdef _AIX |
81 &Paud_bootstrap, | 81 &Paud_bootstrap, |
82 #endif | 82 #endif |
83 #ifdef ENABLE_AHI | 83 #ifdef ENABLE_AHI |
84 &AHI_bootstrap, | 84 &AHI_bootstrap, |
85 #endif | |
86 #ifdef MINTAUDIO_SUPPORT | |
87 &MINTAUDIO_bootstrap, | |
85 #endif | 88 #endif |
86 #ifdef DISKAUD_SUPPORT | 89 #ifdef DISKAUD_SUPPORT |
87 &DISKAUD_bootstrap, | 90 &DISKAUD_bootstrap, |
88 #endif | 91 #endif |
89 NULL | 92 NULL |
376 } | 379 } |
377 | 380 |
378 #ifdef macintosh | 381 #ifdef macintosh |
379 /* FIXME: Need to implement PPC interrupt asm for SDL_LockAudio() */ | 382 /* FIXME: Need to implement PPC interrupt asm for SDL_LockAudio() */ |
380 #else | 383 #else |
384 #if defined(__MINT__) && !defined(ENABLE_THREADS) | |
385 /* Uses interrupt driven audio, without thread */ | |
386 #else | |
381 /* Create a semaphore for locking the sound buffers */ | 387 /* Create a semaphore for locking the sound buffers */ |
382 audio->mixer_lock = SDL_CreateMutex(); | 388 audio->mixer_lock = SDL_CreateMutex(); |
383 if ( audio->mixer_lock == NULL ) { | 389 if ( audio->mixer_lock == NULL ) { |
384 SDL_SetError("Couldn't create mixer lock"); | 390 SDL_SetError("Couldn't create mixer lock"); |
385 SDL_CloseAudio(); | 391 SDL_CloseAudio(); |
386 return(-1); | 392 return(-1); |
387 } | 393 } |
388 #endif | 394 #endif /* __MINT__ */ |
395 #endif /* macintosh */ | |
389 | 396 |
390 /* Calculate the silence and size of the audio specification */ | 397 /* Calculate the silence and size of the audio specification */ |
391 SDL_CalculateAudioSpec(desired); | 398 SDL_CalculateAudioSpec(desired); |
392 | 399 |
393 /* Open the audio subsystem */ | 400 /* Open the audio subsystem */ |