Home
last modified time | relevance | path

Searched refs:iscapture (Results 1 – 25 of 33) sorted by relevance

12

/third_party/flutter/skia/third_party/externals/sdl/test/
Dtestaudiohotplug.c78 devtypestr(int iscapture) in devtypestr() argument
80 return iscapture ? "capture" : "output"; in devtypestr()
96 int iscapture = e.adevice.iscapture; in iteration() local
97 const char *name = SDL_GetAudioDeviceName(index, iscapture); in iteration()
99 …SDL_Log("New %s audio device at index %u: %s\n", devtypestr(iscapture), (unsigned int) index, name… in iteration()
102 devtypestr(iscapture), (unsigned int) index, SDL_GetError()); in iteration()
105 if (!iscapture) { in iteration()
119 SDL_Log("%s device %u removed.\n", devtypestr(e.adevice.iscapture), (unsigned int) dev); in iteration()
Dtestaudioinfo.c16 print_devices(int iscapture) in print_devices() argument
18 const char *typestr = ((iscapture) ? "capture" : "output"); in print_devices()
19 int n = SDL_GetNumAudioDevices(iscapture); in print_devices()
30 const char *name = SDL_GetAudioDeviceName(i, iscapture); in print_devices()
/third_party/flutter/skia/third_party/externals/sdl/src/audio/
DSDL_audiodev.c50 test_device(const int iscapture, const char *fname, int flags, int (*test) (int fd)) in test_device() argument
62 SDL_AddAudioDevice(iscapture, fname, (void *) dummyhandle); in test_device()
75 SDL_EnumUnixAudioDevices_Internal(const int iscapture, const int classic, int (*test)(int)) in SDL_EnumUnixAudioDevices_Internal() argument
77 const int flags = iscapture ? OPEN_FLAGS_INPUT : OPEN_FLAGS_OUTPUT; in SDL_EnumUnixAudioDevices_Internal()
102 test_device(iscapture, audiodev, flags, test); in SDL_EnumUnixAudioDevices_Internal()
109 test_device(iscapture, audiopath, flags, test); in SDL_EnumUnixAudioDevices_Internal()
DSDL_audio.c227 SDL_AudioOpenDevice_Default(_THIS, void *handle, const char *devname, int iscapture) in SDL_AudioOpenDevice_Default() argument
364 SDL_AddAudioDevice(const int iscapture, const char *name, void *handle) in SDL_AddAudioDevice() argument
366 …const int device_index = iscapture ? add_capture_device(name, handle) : add_output_device(name, ha… in SDL_AddAudioDevice()
374 event.adevice.iscapture = iscapture; in SDL_AddAudioDevice()
401 event.adevice.iscapture = device->iscapture ? 1 : 0; in SDL_OpenedAudioDeviceDisconnected()
422 SDL_RemoveAudioDevice(const int iscapture, void *handle) in SDL_RemoveAudioDevice() argument
428 if (iscapture) { in SDL_RemoveAudioDevice()
572 SDL_assert(!device->iscapture); /* this shouldn't ever happen, right?! */ in SDL_BufferQueueDrainCallback()
592 SDL_assert(device->iscapture); /* this shouldn't ever happen, right?! */ in SDL_BufferQueueFillCallback()
609 } else if (device->iscapture) { in SDL_QueueAudio()
[all …]
DSDL_sysaudio.h40 extern void SDL_AddAudioDevice(const int iscapture, const char *name, void *handle);
44 extern void SDL_RemoveAudioDevice(const int iscapture, void *handle);
76 int (*OpenDevice) (_THIS, void *handle, const char *devname, int iscapture);
169 SDL_bool iscapture; member
/third_party/flutter/skia/third_party/externals/sdl/src/audio/disk/
DSDL_diskaudio.c117 get_filename(const int iscapture, const char *devname) in get_filename() argument
120 devname = SDL_getenv(iscapture ? DISKENVR_INFILE : DISKENVR_OUTFILE); in get_filename()
122 devname = iscapture ? DISKDEFAULT_INFILE : DISKDEFAULT_OUTFILE; in get_filename()
129 DISKAUDIO_OpenDevice(_THIS, void *handle, const char *devname, int iscapture) in DISKAUDIO_OpenDevice() argument
132 const char *fname = get_filename(iscapture, handle ? NULL : devname); in DISKAUDIO_OpenDevice()
149 this->hidden->io = SDL_RWFromFile(fname, iscapture ? "rb" : "wb"); in DISKAUDIO_OpenDevice()
155 if (!iscapture) { in DISKAUDIO_OpenDevice()
166 " %s file [%s].\n", iscapture ? "Reading from" : "Writing to", in DISKAUDIO_OpenDevice()
/third_party/flutter/skia/third_party/externals/sdl/src/audio/android/
DSDL_androidaudio.c40 ANDROIDAUDIO_OpenDevice(_THIS, void *handle, const char *devname, int iscapture) in ANDROIDAUDIO_OpenDevice() argument
44 SDL_assert((captureDevice == NULL) || !iscapture); in ANDROIDAUDIO_OpenDevice()
45 SDL_assert((audioDevice == NULL) || iscapture); in ANDROIDAUDIO_OpenDevice()
47 if (iscapture) { in ANDROIDAUDIO_OpenDevice()
86 …this->spec.samples = Android_JNI_OpenAudioDevice(iscapture, this->spec.freq, this->spec.format == … in ANDROIDAUDIO_OpenDevice()
128 Android_JNI_CloseAudioDevice(this->iscapture); in ANDROIDAUDIO_CloseDevice()
129 if (this->iscapture) { in ANDROIDAUDIO_CloseDevice()
/third_party/flutter/skia/third_party/externals/sdl/src/audio/coreaudio/
DSDL_coreaudio.m49 typedef void (*addDevFn)(const char *name, const int iscapture, AudioDeviceID devId, void *data);
62 add_to_internal_dev_list(const int iscapture, AudioDeviceID devId)
70 item->next = iscapture ? capture_devs : output_devs;
71 if (iscapture) {
81 addToDevList(const char *name, const int iscapture, AudioDeviceID devId, void *data)
83 if (add_to_internal_dev_list(iscapture, devId)) {
84 SDL_AddAudioDevice(iscapture, name, (void *) ((size_t) devId));
89 build_device_list(int iscapture, addDevFn addfn, void *addfndata)
121 iscapture ? kAudioDevicePropertyScopeInput : kAudioDevicePropertyScopeOutput,
127 iscapture ? kAudioDevicePropertyScopeInput : kAudioDevicePropertyScopeOutput,
[all …]
/third_party/flutter/skia/third_party/externals/sdl/src/audio/qsa/
DSDL_qsa_audio.c163 if (!this->hidden->iscapture) { in QSA_WaitDevice()
180 if (!this->hidden->iscapture) { in QSA_WaitDevice()
206 if (!this->hidden->iscapture) { in QSA_WaitDevice()
264 if (!this->hidden->iscapture) { in QSA_PlayDevice()
280 if (!this->hidden->iscapture) { in QSA_PlayDevice()
324 if (!this->hidden->iscapture) { in QSA_CloseDevice()
341 QSA_OpenDevice(_THIS, void *handle, const char *devname, int iscapture) in QSA_OpenDevice() argument
366 this->hidden->iscapture = iscapture ? SDL_TRUE : SDL_FALSE; in QSA_OpenDevice()
374 iscapture ? SND_PCM_OPEN_PLAYBACK : SND_PCM_OPEN_CAPTURE); in QSA_OpenDevice()
380 iscapture ? SND_PCM_OPEN_PLAYBACK : SND_PCM_OPEN_CAPTURE); in QSA_OpenDevice()
[all …]
DSDL_qsa_audio.h37 SDL_bool iscapture; member
/third_party/flutter/skia/third_party/externals/sdl/src/audio/winmm/
DSDL_winmm.c42 const UINT iscapture = iscap ? 1 : 0; \
50 SDL_AddAudioDevice((int) iscapture, name, (void *) ((size_t) i+1)); \
222 PrepWaveFormat(_THIS, UINT devId, WAVEFORMATEX *pfmt, const int iscapture) in PrepWaveFormat() argument
238 if (iscapture) { in PrepWaveFormat()
246 WINMM_OpenDevice(_THIS, void *handle, const char *devname, int iscapture) in WINMM_OpenDevice() argument
283 if (PrepWaveFormat(this, devId, &waveformat, iscapture)) { in WINMM_OpenDevice()
304 if (iscapture) { in WINMM_OpenDevice()
323 if (iscapture) { in WINMM_OpenDevice()
345 CreateSemaphore(NULL, iscapture ? 0 : NUM_BUFFERS - 1, NUM_BUFFERS, NULL); in WINMM_OpenDevice()
364 if (iscapture) { in WINMM_OpenDevice()
[all …]
/third_party/flutter/skia/third_party/externals/sdl/src/audio/bsd/
DSDL_bsdaudio.c72 prinfo = this->iscapture ? &info.play : &info.record; in BSDAUDIO_Status()
89 this->iscapture ? "record" : "play", in BSDAUDIO_Status()
278 BSDAUDIO_OpenDevice(_THIS, void *handle, const char *devname, int iscapture) in BSDAUDIO_OpenDevice() argument
280 const int flags = iscapture ? OPEN_FLAGS_INPUT : OPEN_FLAGS_OUTPUT; in BSDAUDIO_OpenDevice()
283 audio_prinfo *prinfo = iscapture ? &info.play : &info.record; in BSDAUDIO_OpenDevice()
288 devname = SDL_GetAudioDeviceName(0, iscapture); in BSDAUDIO_OpenDevice()
314 info.mode = iscapture ? AUMODE_RECORD : AUMODE_PLAY; in BSDAUDIO_OpenDevice()
376 if (!iscapture) { in BSDAUDIO_OpenDevice()
/third_party/flutter/skia/third_party/externals/sdl/src/audio/alsa/
DSDL_alsa_audio.c541 ALSA_OpenDevice(_THIS, void *handle, const char *devname, int iscapture) in ALSA_OpenDevice() argument
564 iscapture ? SND_PCM_STREAM_CAPTURE : SND_PCM_STREAM_PLAYBACK, in ALSA_OpenDevice()
702 if (!iscapture) { in ALSA_OpenDevice()
721 SDL_bool iscapture; member
726 add_device(const int iscapture, const char *name, void *hint, ALSA_Device **pSeen) in add_device() argument
759 SDL_AddAudioDevice(iscapture, desc, handle); in add_device()
763 dev->iscapture = iscapture; in add_device()
858 …_strcmp(dev->name, name) == 0) && (((isinput) && dev->iscapture) || ((isoutput) && !dev->iscapture in ALSA_HotplugThread()
892 SDL_RemoveAudioDevice(dev->iscapture, dev->name); in ALSA_HotplugThread()
/third_party/flutter/skia/third_party/externals/sdl/src/audio/dsp/
DSDL_dspaudio.c71 DSP_OpenDevice(_THIS, void *handle, const char *devname, int iscapture) in DSP_OpenDevice() argument
73 const int flags = ((iscapture) ? OPEN_FLAGS_INPUT : OPEN_FLAGS_OUTPUT); in DSP_OpenDevice()
82 devname = SDL_GetAudioDeviceName(0, iscapture); in DSP_OpenDevice()
238 if (!iscapture) { in DSP_OpenDevice()
/third_party/flutter/skia/third_party/externals/sdl/src/core/android/
DSDL_android.h43 extern int Android_JNI_OpenAudioDevice(int iscapture, int sampleRate, int is16Bit, int channelCount…
48 extern void Android_JNI_CloseAudioDevice(const int iscapture);
/third_party/flutter/skia/third_party/externals/sdl/include/
DSDL_audio.h318 extern DECLSPEC int SDLCALL SDL_GetNumAudioDevices(int iscapture);
334 int iscapture);
352 int iscapture,
/third_party/flutter/skia/third_party/externals/sdl/src/audio/nas/
DSDL_nasaudio.c265 if (this->iscapture) { in event_handler()
309 …const unsigned int devicekind = this->iscapture ? AuComponentKindPhysicalInput : AuComponentKindPh… in find_device()
334 NAS_OpenDevice(_THIS, void *handle, const char *devname, int iscapture) in NAS_OpenDevice() argument
383 if (iscapture) { in NAS_OpenDevice()
407 if (!iscapture) { in NAS_OpenDevice()
/third_party/flutter/skia/third_party/externals/sdl/src/audio/pulseaudio/
DSDL_pulseaudio.c476 FindDeviceName(struct SDL_PrivateAudioData *h, const int iscapture, void *handle) in FindDeviceName() argument
484 if (iscapture) { in FindDeviceName()
498 PULSEAUDIO_OpenDevice(_THIS, void *handle, const char *devname, int iscapture) in PULSEAUDIO_OpenDevice() argument
567 if (!iscapture) { in PULSEAUDIO_OpenDevice()
599 if (!FindDeviceName(h, iscapture, handle)) { in PULSEAUDIO_OpenDevice()
625 if (iscapture) { in PULSEAUDIO_OpenDevice()
/third_party/flutter/skia/third_party/externals/sdl/src/audio/directsound/
DSDL_directsound.c161 const int iscapture = (int) ((size_t) data); in FindAllDevs() local
167 SDL_AddAudioDevice(iscapture, str, cpyguid); in FindAllDevs()
473 DSOUND_OpenDevice(_THIS, void *handle, const char *devname, int iscapture) in DSOUND_OpenDevice() argument
492 if (iscapture) { in DSOUND_OpenDevice()
544 …rc = iscapture ? CreateCaptureBuffer(this, bufsize, &wfmt) : CreateSecondary(this, bufsize, &wfmt); in DSOUND_OpenDevice()
/third_party/flutter/skia/third_party/externals/sdl/src/audio/dummy/
DSDL_dummyaudio.c31 DUMMYAUDIO_OpenDevice(_THIS, void *handle, const char *devname, int iscapture) in DUMMYAUDIO_OpenDevice() argument
/third_party/flutter/skia/third_party/externals/sdl/src/audio/sun/
DSDL_sunaudio.c194 SUNAUDIO_OpenDevice(_THIS, void *handle, const char *devname, int iscapture) in SUNAUDIO_OpenDevice() argument
196 const int flags = ((iscapture) ? OPEN_FLAGS_INPUT : OPEN_FLAGS_OUTPUT); in SUNAUDIO_OpenDevice()
203 devname = SDL_GetAudioDeviceName(0, iscapture); in SUNAUDIO_OpenDevice()
/third_party/flutter/skia/third_party/externals/sdl/src/audio/emscripten/
DSDL_emscriptenaudio.c237 }, this->iscapture); in EMSCRIPTENAUDIO_CloseDevice()
244 EMSCRIPTENAUDIO_OpenDevice(_THIS, void *handle, const char *devname, int iscapture) in EMSCRIPTENAUDIO_OpenDevice() argument
273 }, iscapture); in EMSCRIPTENAUDIO_OpenDevice()
322 if (iscapture) { in EMSCRIPTENAUDIO_OpenDevice()
/third_party/flutter/skia/third_party/externals/sdl/src/audio/nacl/
DSDL_naclaudio.c85 NACLAUDIO_OpenDevice(_THIS, void *handle, const char *devname, int iscapture) { in NACLAUDIO_OpenDevice() argument
/third_party/flutter/skia/third_party/externals/sdl/src/audio/psp/
DSDL_pspaudio.c45 PSPAUDIO_OpenDevice(_THIS, void *handle, const char *devname, int iscapture) in PSPAUDIO_OpenDevice() argument
/third_party/flutter/skia/third_party/externals/sdl/src/audio/haiku/
DSDL_haikuaudio.cc110 HAIKUAUDIO_OpenDevice(_THIS, void *handle, const char *devname, int iscapture) in HAIKUAUDIO_OpenDevice() argument

12