comparison src/audio/SDL_audio.c @ 1978:542c78b6fb12

MacOS Classic is no longer supported.
author Sam Lantinga <slouken@libsdl.org>
date Thu, 10 Aug 2006 14:54:23 +0000
parents 8f1ab2f7c722
children 3b4ce57c6215
comparison
equal deleted inserted replaced
1977:754847f19490 1978:542c78b6fb12
530 } 530 }
531 if (desired->callback == NULL) { 531 if (desired->callback == NULL) {
532 SDL_SetError("SDL_OpenAudio() passed a NULL callback"); 532 SDL_SetError("SDL_OpenAudio() passed a NULL callback");
533 return (-1); 533 return (-1);
534 } 534 }
535 #if defined(__MACOS__) || (defined(__RISCOS__) && SDL_THREADS_DISABLED)
536 /* FIXME: Need to implement PPC interrupt asm for SDL_LockAudio() */
537 #else
538 #if defined(__MINT__) && SDL_THREADS_DISABLED 535 #if defined(__MINT__) && SDL_THREADS_DISABLED
539 /* Uses interrupt driven audio, without thread */ 536 /* Uses interrupt driven audio, without thread */
540 #else 537 #else
541 /* Create a semaphore for locking the sound buffers */ 538 /* Create a semaphore for locking the sound buffers */
542 audio->mixer_lock = SDL_CreateMutex(); 539 audio->mixer_lock = SDL_CreateMutex();
544 SDL_SetError("Couldn't create mixer lock"); 541 SDL_SetError("Couldn't create mixer lock");
545 SDL_CloseAudio(); 542 SDL_CloseAudio();
546 return (-1); 543 return (-1);
547 } 544 }
548 #endif /* __MINT__ */ 545 #endif /* __MINT__ */
549 #endif /* __MACOS__ */
550 546
551 /* Calculate the silence and size of the audio specification */ 547 /* Calculate the silence and size of the audio specification */
552 SDL_CalculateAudioSpec(desired); 548 SDL_CalculateAudioSpec(desired);
553 549
554 /* Open the audio subsystem */ 550 /* Open the audio subsystem */