comparison src/audio/macosx/SDL_coreaudio.c @ 3795:589bc3d060cd SDL-ryan-multiple-audio-device

More 1.3 audio work...moved dsp and dma drivers over to new model. Untested!
author Ryan C. Gordon <icculus@icculus.org>
date Wed, 04 Oct 2006 06:00:10 +0000
parents 866c310e2cb5
children b19680c84cdf
comparison
equal deleted inserted replaced
3794:db24e43972ac 3795:589bc3d060cd
354 return noErr; 354 return noErr;
355 } 355 }
356 356
357 357
358 /* Dummy functions -- we don't use thread-based audio */ 358 /* Dummy functions -- we don't use thread-based audio */
359 void 359 static void
360 COREAUDIO_WaitDevice(_THIS) 360 COREAUDIO_WaitDevice(_THIS)
361 { 361 {
362 return; 362 return;
363 } 363 }
364 364
365 void 365 static void
366 COREAUDIO_PlayDevice(_THIS) 366 COREAUDIO_PlayDevice(_THIS)
367 { 367 {
368 return; 368 return;
369 } 369 }
370 370
371 Uint8 * 371 static Uint8 *
372 COREAUDIO_GetDeviceBuf(_THIS) 372 COREAUDIO_GetDeviceBuf(_THIS)
373 { 373 {
374 return (NULL); 374 return (NULL);
375 } 375 }
376 376
377 void 377 static void
378 COREAUDIO_CloseDevice(_THIS) 378 COREAUDIO_CloseDevice(_THIS)
379 { 379 {
380 if (this->hidden != NULL) { 380 if (this->hidden != NULL) {
381 OSStatus result = noErr; 381 OSStatus result = noErr;
382 AURenderCallbackStruct callback; 382 AURenderCallbackStruct callback;
553 /* We're running! */ 553 /* We're running! */
554 return 1; 554 return 1;
555 } 555 }
556 556
557 557
558 int 558 static int
559 COREAUDIO_OpenDevice(_THIS, const char *devname, int iscapture) 559 COREAUDIO_OpenDevice(_THIS, const char *devname, int iscapture)
560 { 560 {
561 AudioStreamBasicDescription strdesc; 561 AudioStreamBasicDescription strdesc;
562 SDL_AudioFormat test_format = SDL_FirstAudioFormat(this->spec.format); 562 SDL_AudioFormat test_format = SDL_FirstAudioFormat(this->spec.format);
563 int valid_datatype = 0; 563 int valid_datatype = 0;