comparison src/audio/SDL_audio.c @ 3806:1485d42cf1a0 SDL-ryan-multiple-audio-device

Removed some FIXMEs that'll probably never actually need fixing.
author Ryan C. Gordon <icculus@icculus.org>
date Wed, 04 Oct 2006 22:42:26 +0000
parents b12b7ec0dfcc
children de857f0708f5
comparison
equal deleted inserted replaced
3805:ef7f7be318da 3806:1485d42cf1a0
29 #include "SDL_sysaudio.h" 29 #include "SDL_sysaudio.h"
30 30
31 #define _THIS SDL_AudioDevice *this 31 #define _THIS SDL_AudioDevice *this
32 32
33 static SDL_AudioDriver current_audio; 33 static SDL_AudioDriver current_audio;
34
35 /* !!! FIXME: don't use a static array, but it's Good Enough For Now... */
36 static SDL_AudioDevice *open_devices[16]; 34 static SDL_AudioDevice *open_devices[16];
37 35
38 /* !!! FIXME: These are wordy and unlocalized... */ 36 /* !!! FIXME: These are wordy and unlocalized... */
39 #define DEFAULT_OUTPUT_DEVNAME "System audio output device" 37 #define DEFAULT_OUTPUT_DEVNAME "System audio output device"
40 #define DEFAULT_INPUT_DEVNAME "System audio capture device" 38 #define DEFAULT_INPUT_DEVNAME "System audio capture device"
711 open_devices[id] = device; 709 open_devices[id] = device;
712 break; 710 break;
713 } 711 }
714 } 712 }
715 713
716 /* !!! FIXME: remove static array... */
717 if (id == SDL_arraysize(open_devices)) { 714 if (id == SDL_arraysize(open_devices)) {
718 SDL_SetError("Too many open audio devices"); 715 SDL_SetError("Too many open audio devices");
719 close_audio_device(device); 716 close_audio_device(device);
720 return 0; 717 return 0;
721 } 718 }