Lines Matching refs:open_devices
34 static SDL_AudioDevice *open_devices[16]; variable
206 if ((id >= SDL_arraysize(open_devices)) || (open_devices[id] == NULL)) { in get_audio_device()
211 return open_devices[id]; in get_audio_device()
545 for (device_index = 0; device_index < SDL_arraysize(open_devices); device_index++) in SDL_RemoveAudioDevice()
547 device = open_devices[device_index]; in SDL_RemoveAudioDevice()
954 SDL_zeroa(open_devices); in SDL_AudioInit()
1138 SDL_AudioDevice *opendev = open_devices[device->id - 1]; in close_audio_device()
1141 open_devices[device->id - 1] = NULL; in close_audio_device()
1243 for (id = min_id - 1; id < SDL_arraysize(open_devices); id++) { in open_audio_device()
1244 if (open_devices[id] == NULL) { in open_audio_device()
1249 if (id == SDL_arraysize(open_devices)) { in open_audio_device()
1283 for (i = 0; i < SDL_arraysize(open_devices); i++) { in open_audio_device()
1284 if ((open_devices[i]) && (open_devices[i]->iscapture)) { in open_audio_device()
1296 for (i = 0; i < SDL_arraysize(open_devices); i++) { in open_audio_device()
1297 if ((open_devices[i]) && (!open_devices[i]->iscapture)) { in open_audio_device()
1439 open_devices[id] = device; /* add it to our list of open devices. */ in open_audio_device()
1476 if (open_devices[0] != NULL) { in SDL_OpenAudio()
1601 for (i = 0; i < SDL_arraysize(open_devices); i++) { in SDL_AudioQuit()
1602 close_audio_device(open_devices[i]); in SDL_AudioQuit()
1614 SDL_zeroa(open_devices); in SDL_AudioQuit()