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 449 of file SDL_audio.c.
References SDL_AudioDevice::enabled, get_audio_device(), SDL_AudioDevice::id, SDL_AudioDriver::impl, SDL_AudioDevice::iscapture, 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().
468 event.adevice.which = device->
id;
469 event.adevice.iscapture = device->
iscapture ? 1 : 0;
static SDL_AudioDriver current_audio
void(* UnlockDevice)(_THIS)
#define SDL_GetEventState(type)
void(* LockDevice)(_THIS)
#define SDL_assert(condition)
static SDL_AudioDevice * get_audio_device(SDL_AudioDeviceID id)
◆ SDL_RemoveAudioDevice()
void SDL_RemoveAudioDevice |
( |
const int |
iscapture, |
|
|
void * |
handle |
|
) |
| |
Definition at line 490 of file SDL_audio.c.
References SDL_AudioDriver::captureDevicesRemoved, SDL_AudioDriver::detectionLock, device, SDL_AudioDriverImpl::FreeDeviceHandle, SDL_AudioDevice::handle, SDL_AudioDriver::impl, SDL_AudioDriver::inputDevices, mark_device_removed(), NULL, SDL_AudioDriver::outputDevices, SDL_AudioDriver::outputDevicesRemoved, SDL_arraysize, SDL_LockMutex, SDL_OpenedAudioDeviceDisconnected(), SDL_UnlockMutex, and SDLCALL.
static SDL_AudioDevice * open_devices[16]
SDL_bool captureDevicesRemoved
static void mark_device_removed(void *handle, SDL_AudioDeviceItem *devices, SDL_bool *removedFlag)
void SDL_OpenedAudioDeviceDisconnected(SDL_AudioDevice *device)
static SDL_AudioDriver current_audio
SDL_mutex * detectionLock
static SDL_AudioDeviceID device
EGLImageKHR EGLint EGLint * handle
SDL_AudioDeviceItem * outputDevices
SDL_bool outputDevicesRemoved
void(* FreeDeviceHandle)(void *handle)
#define SDL_arraysize(array)
SDL_AudioDeviceItem * inputDevices
◆ 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
◆ PAUDIO_bootstrap
◆ PSPAUDIO_bootstrap
◆ PULSEAUDIO_bootstrap
◆ QSAAUDIO_bootstrap
◆ SNDIO_bootstrap
◆ SUNAUDIO_bootstrap
◆ WASAPI_bootstrap
◆ WINMM_bootstrap