Go to the source code of this file.
◆ _THIS
◆ DEFAULT_INPUT_DEVNAME
#define DEFAULT_INPUT_DEVNAME "System audio capture device" |
◆ DEFAULT_OUTPUT_DEVNAME
#define DEFAULT_OUTPUT_DEVNAME "System audio output device" |
◆ SDL_AUDIOBUFFERQUEUE_PACKETLEN
#define SDL_AUDIOBUFFERQUEUE_PACKETLEN (8 * 1024) |
◆ SDL_AddAudioDevice()
void SDL_AddAudioDevice |
( |
const int |
iscapture, |
|
|
const char * |
name, |
|
|
void * |
handle |
|
) |
| |
◆ SDL_OpenedAudioDeviceDisconnected()
Definition at line 486 of file SDL_audio.c.
487{
489
491 return;
492 }
493
495 return;
496 }
497
498
499
503
504
509 event.adevice.which =
device->id;
510 event.adevice.iscapture =
device->iscapture ? 1 : 0;
512 }
513}
#define SDL_assert(condition)
static SDL_AudioDriver current_audio
static SDL_AudioDevice * get_audio_device(SDL_AudioDeviceID id)
static SDL_AudioDeviceID device
void(* UnlockDevice)(_THIS)
void(* LockDevice)(_THIS)
References current_audio, device, get_audio_device(), SDL_AudioDriver::impl, SDL_AudioDriverImpl::LockDevice, SDL_assert, SDL_AtomicGet, SDL_AtomicSet, SDL_AUDIODEVICEREMOVED, SDL_ENABLE, SDL_GetEventState, SDL_PushEvent, SDL_zero, and SDL_AudioDriverImpl::UnlockDevice.
Referenced by SDL_CaptureAudio(), and SDL_RemoveAudioDevice().
◆ SDL_RemoveAudioDevice()
void SDL_RemoveAudioDevice |
( |
const int |
iscapture, |
|
|
void * |
handle |
|
) |
| |
Definition at line 531 of file SDL_audio.c.
532{
533 int device_index;
535
537 if (iscapture) {
539 } else {
541 }
543 {
546 {
548 break;
549 }
550 }
552
554}
static void mark_device_removed(void *handle, SDL_AudioDeviceItem *devices, SDL_bool *removedFlag)
static SDL_AudioDevice * open_devices[16]
void SDL_OpenedAudioDeviceDisconnected(SDL_AudioDevice *device)
#define SDL_arraysize(array)
SDL_AudioDeviceItem * inputDevices
SDL_bool captureDevicesRemoved
SDL_bool outputDevicesRemoved
SDL_mutex * detectionLock
SDL_AudioDeviceItem * outputDevices
void(* FreeDeviceHandle)(void *handle)
References SDL_AudioDriver::captureDevicesRemoved, current_audio, SDL_AudioDriver::detectionLock, device, SDL_AudioDriverImpl::FreeDeviceHandle, SDL_AudioDriver::impl, SDL_AudioDriver::inputDevices, mark_device_removed(), NULL, open_devices, SDL_AudioDriver::outputDevices, SDL_AudioDriver::outputDevicesRemoved, SDL_arraysize, SDL_LockMutex, SDL_OpenedAudioDeviceDisconnected(), and SDL_UnlockMutex.
◆ ALSA_bootstrap
◆ ANDROIDAUDIO_bootstrap
◆ ARTS_bootstrap
◆ COREAUDIO_bootstrap
◆ DISKAUDIO_bootstrap
◆ DSOUND_bootstrap
◆ DSP_bootstrap
◆ DUMMYAUDIO_bootstrap
◆ EMSCRIPTENAUDIO_bootstrap
◆ ESD_bootstrap
◆ FUSIONSOUND_bootstrap
◆ HAIKUAUDIO_bootstrap
◆ JACK_bootstrap
◆ NACLAUDIO_bootstrap
◆ NAS_bootstrap
◆ NETBSDAUDIO_bootstrap
◆ openslES_bootstrap
◆ PAUDIO_bootstrap
◆ PSPAUDIO_bootstrap
◆ PULSEAUDIO_bootstrap
◆ QSAAUDIO_bootstrap
◆ SNDIO_bootstrap
◆ SUNAUDIO_bootstrap
◆ WASAPI_bootstrap
◆ WINMM_bootstrap