comparison src/audio/macrom/SDL_romaudio.c @ 3798:c8b3d3d13ed1 SDL-ryan-multiple-audio-device

Audio bootstraps can now specify that a driver is only to be used if explicitly requested (for things like the "disk" driver that is always available but you would never want to default to using). Trimmed out code that can be handled by stubs in the core. The "dummy" driver is pretty damned small now. :)
author Ryan C. Gordon <icculus@icculus.org>
date Wed, 04 Oct 2006 21:27:53 +0000
parents b19680c84cdf
children 1485d42cf1a0
comparison
equal deleted inserted replaced
3797:9dc81c6acaf5 3798:c8b3d3d13ed1
68 68
69 static int 69 static int
70 SNDMGR_Init(SDL_AudioDriverImpl *impl) 70 SNDMGR_Init(SDL_AudioDriverImpl *impl)
71 { 71 {
72 /* Set the function pointers */ 72 /* Set the function pointers */
73 impl->DetectDevices = SNDMGR_DetectDevices;
74 impl->GetDeviceName = SNDMGR_GetDeviceName;
75 impl->OpenDevice = SNDMGR_OpenDevice; 73 impl->OpenDevice = SNDMGR_OpenDevice;
76 impl->CloseDevice = SNDMGR_CloseDevice; 74 impl->CloseDevice = SNDMGR_CloseDevice;
77 impl->ProvidesOwnCallbackThread = 1; 75 impl->ProvidesOwnCallbackThread = 1;
78 impl->OnlyHasDefaultOutputDevice = 1; 76 impl->OnlyHasDefaultOutputDevice = 1;
79 77
85 return 1; 83 return 1;
86 } 84 }
87 85
88 AudioBootStrap SNDMGR_bootstrap = { 86 AudioBootStrap SNDMGR_bootstrap = {
89 "sndmgr", SDL_MACOS_NAME " SoundManager", 87 "sndmgr", SDL_MACOS_NAME " SoundManager",
90 SNDMGR_Available, SNDMGR_Init 88 SNDMGR_Available, SNDMGR_Init, 0
91 }; 89 };
92 90
93 #pragma options align=power 91 #pragma options align=power
94 92
95 static volatile SInt32 audio_is_locked = 0; 93 static volatile SInt32 audio_is_locked = 0;