Home
last modified time | relevance | path

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

12

/AliOS-Things-master/components/SDL2/test/
A 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()
A 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()
A Dloopwave.c163 if ((event.type == SDL_AUDIODEVICEADDED && !event.adevice.iscapture) || in main()
164 …(event.type == SDL_AUDIODEVICEREMOVED && !event.adevice.iscapture && event.adevice.which == device… in main()
/AliOS-Things-master/components/SDL2/src/audio/
A 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()
110 test_device(iscapture, audiopath, flags, test); in SDL_EnumUnixAudioDevices_Internal()
A DSDL_audio.c482 event.adevice.iscapture = iscapture; in SDL_AddAudioDevice()
513 event.adevice.iscapture = device->iscapture ? 1 : 0; in SDL_OpenedAudioDeviceDisconnected()
540 if (iscapture) { in SDL_RemoveAudioDevice()
608 } else if (device->iscapture) { in SDL_QueueAudio()
693 SDL_assert(!device->iscapture); in SDL_RunAudio()
798 SDL_assert(device->iscapture); in SDL_CaptureAudio()
1048 SDL_GetNumAudioDevices(int iscapture) in SDL_GetNumAudioDevices() argument
1073 SDL_GetAudioDeviceName(int index, int iscapture) in SDL_GetAudioDeviceName() argument
1219 open_audio_device(const char *devname, int iscapture, in open_audio_device() argument
1335 device->iscapture = iscapture ? SDL_TRUE : SDL_FALSE; in open_audio_device()
[all …]
A DSDL_sysaudio.h42 extern void SDL_AddAudioDevice(const int iscapture, const char *name, void *handle);
46 extern void SDL_RemoveAudioDevice(const int iscapture, void *handle);
68 int (*OpenDevice) (_THIS, void *handle, const char *devname, int iscapture);
150 SDL_bool iscapture; member
/AliOS-Things-master/components/SDL2/src/audio/disk/
A 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()
/AliOS-Things-master/components/SDL2/src/audio/android/
A 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()
74 if (Android_JNI_OpenAudioDevice(iscapture, &this->spec) < 0) { in ANDROIDAUDIO_OpenDevice()
113 Android_JNI_CloseAudioDevice(this->iscapture); in ANDROIDAUDIO_CloseDevice()
114 if (this->iscapture) { in ANDROIDAUDIO_CloseDevice()
/AliOS-Things-master/components/SDL2/src/audio/qsa/
A DSDL_qsa_audio.c123 result = SDL_IOReady(this->hidden->audio_fd, !this->hidden->iscapture, 2 * 1000); in QSA_WaitDevice()
181 if (!this->hidden->iscapture) { in QSA_PlayDevice()
197 if (!this->hidden->iscapture) { in QSA_PlayDevice()
241 if (!this->hidden->iscapture) { in QSA_CloseDevice()
258 QSA_OpenDevice(_THIS, void *handle, const char *devname, int iscapture) in QSA_OpenDevice() argument
282 this->hidden->iscapture = iscapture ? SDL_TRUE : SDL_FALSE; in QSA_OpenDevice()
290 iscapture ? SND_PCM_OPEN_CAPTURE : SND_PCM_OPEN_PLAYBACK); in QSA_OpenDevice()
296 iscapture ? SND_PCM_OPEN_CAPTURE : SND_PCM_OPEN_PLAYBACK); in QSA_OpenDevice()
408 if (!this->hidden->iscapture) { in QSA_OpenDevice()
444 if (!this->hidden->iscapture) { in QSA_OpenDevice()
[all …]
A DSDL_qsa_audio.h37 SDL_bool iscapture; member
/AliOS-Things-master/components/SDL2/src/audio/wasapi/
A DSDL_wasapi_winrt.cpp71 const SDL_bool iscapture; member in SDL_WasapiDeviceEventHandler
81 : iscapture(_iscapture) in SDL_WasapiDeviceEventHandler()
93 if (iscapture) { in SDL_WasapiDeviceEventHandler()
116 if (iscapture) { in ~SDL_WasapiDeviceEventHandler()
129 WASAPI_AddDevice(this->iscapture, utf8dev, info->Id->Data());
138 WASAPI_RemoveDevice(this->iscapture, info->Id->Data());
157 SDL_assert(this->iscapture);
164 SDL_assert(!this->iscapture);
225 …defdevid = _this->iscapture ? MediaDevice::GetDefaultAudioCaptureId(AudioDeviceRole::Default) : Me… in WASAPI_ActivateDevice()
A DSDL_wasapi_win32.c197 const SDL_bool iscapture = (flow == eCapture); in SDLMMNotificationClient_OnDeviceStateChanged() local
201 WASAPI_AddDevice(iscapture, utf8dev, pwstrDeviceId); in SDLMMNotificationClient_OnDeviceStateChanged()
205 WASAPI_RemoveDevice(iscapture, pwstrDeviceId); in SDLMMNotificationClient_OnDeviceStateChanged()
323 const EDataFlow dataflow = this->iscapture ? eCapture : eRender; in WASAPI_ActivateDevice()
385 WASAPI_EnumerateEndpointsForFlow(const SDL_bool iscapture) in WASAPI_EnumerateEndpointsForFlow() argument
394 …if (FAILED(IMMDeviceEnumerator_EnumAudioEndpoints(enumerator, iscapture ? eCapture : eRender, DEVI… in WASAPI_EnumerateEndpointsForFlow()
426 WASAPI_AddDevice(iscapture, item->devname, item->devid); in WASAPI_EnumerateEndpointsForFlow()
A DSDL_wasapi.h66 void WASAPI_AddDevice(const SDL_bool iscapture, const char *devname, LPCWSTR devid);
67 void WASAPI_RemoveDevice(const SDL_bool iscapture, LPCWSTR devid);
A DSDL_wasapi.c101 WASAPI_RemoveDevice(const SDL_bool iscapture, LPCWSTR devid) in WASAPI_RemoveDevice() argument
114 SDL_RemoveAudioDevice(iscapture, i->str); in WASAPI_RemoveDevice()
123 WASAPI_AddDevice(const SDL_bool iscapture, const char *devname, LPCWSTR devid) in WASAPI_AddDevice() argument
154 SDL_AddAudioDevice(iscapture, devname, (void *) devid); in WASAPI_AddDevice()
203 if (this->iscapture) { in UpdateAudioStream()
243 …this->hidden->default_device_generation = SDL_AtomicGet(this->iscapture ? &WASAPI_DefaultCaptureG… in RecoverWasapiDevice()
276 …const int newgen = SDL_AtomicGet(this->iscapture ? &WASAPI_DefaultCaptureGeneration : &WASAPI_Defa… in RecoverWasapiIfLost()
582 … if (WIN_IsWindows7OrGreater() && !this->iscapture && (sharemode == AUDCLNT_SHAREMODE_SHARED)) { in WASAPI_PrepDevice()
621 if (this->iscapture) { in WASAPI_PrepDevice()
665 WASAPI_OpenDevice(_THIS, void *handle, const char *devname, int iscapture) in WASAPI_OpenDevice() argument
[all …]
/AliOS-Things-master/components/SDL2/src/audio/netbsd/
A DSDL_netbsdaudio.c68 prinfo = this->iscapture ? &info.record : &info.play; in NETBSDAUDIO_Status()
85 this->iscapture ? "record" : "play", in NETBSDAUDIO_Status()
205 NETBSDAUDIO_OpenDevice(_THIS, void *handle, const char *devname, int iscapture) in NETBSDAUDIO_OpenDevice() argument
209 struct audio_prinfo *prinfo = iscapture ? &info.record : &info.play; in NETBSDAUDIO_OpenDevice()
214 devname = SDL_GetAudioDeviceName(0, iscapture); in NETBSDAUDIO_OpenDevice()
229 this->hidden->audio_fd = open(devname, iscapture ? O_RDONLY : O_WRONLY); in NETBSDAUDIO_OpenDevice()
288 info.mode = iscapture ? AUMODE_RECORD : AUMODE_PLAY; in NETBSDAUDIO_OpenDevice()
300 if (!iscapture) { in NETBSDAUDIO_OpenDevice()
/AliOS-Things-master/components/SDL2/src/audio/winmm/
A DSDL_winmm.c76 const UINT iscapture = iscap ? 1 : 0; \
84 SDL_AddAudioDevice((int) iscapture, name, (void *) ((size_t) i+1)); \
256 PrepWaveFormat(_THIS, UINT devId, WAVEFORMATEX *pfmt, const int iscapture) in PrepWaveFormat() argument
272 if (iscapture) { in PrepWaveFormat()
280 WINMM_OpenDevice(_THIS, void *handle, const char *devname, int iscapture) in WINMM_OpenDevice() argument
317 if (PrepWaveFormat(this, devId, &waveformat, iscapture)) { in WINMM_OpenDevice()
338 if (iscapture) { in WINMM_OpenDevice()
357 if (iscapture) { in WINMM_OpenDevice()
378 …this->hidden->audio_sem = CreateSemaphore(NULL, iscapture ? 0 : NUM_BUFFERS - 1, NUM_BUFFERS, NULL… in WINMM_OpenDevice()
397 if (iscapture) { in WINMM_OpenDevice()
[all …]
/AliOS-Things-master/components/SDL2/src/audio/coreaudio/
A DSDL_coreaudio.m81 item->next = iscapture ? capture_devs : output_devs;
82 if (iscapture) {
94 if (add_to_internal_dev_list(iscapture, devId)) {
201 addfn(ptr, iscapture, dev, addfndata);
676 const SDL_bool iscapture = this->iscapture;
687 if (iscapture) {
736 prepare_device(_THIS, void *handle, int iscapture)
813 const int iscapture = this->iscapture;
819 if (iscapture) {
1027 if (iscapture) {
[all …]
/AliOS-Things-master/components/SDL2/src/core/android/
A DSDL_android.h56 extern int Android_JNI_OpenAudioDevice(int iscapture, SDL_AudioSpec *spec);
61 extern void Android_JNI_CloseAudioDevice(const int iscapture);
62 extern void Android_JNI_AudioSetThreadPriority(int iscapture, int device_id);
/AliOS-Things-master/components/SDL2/src/audio/jack/
A DSDL_jackaudio.c284 JACK_OpenDevice(_THIS, void *handle, const char *devname, int iscapture) in JACK_OpenDevice() argument
290 const unsigned long sysportflags = iscapture ? JackPortIsOutput : JackPortIsInput; in JACK_OpenDevice()
291 const unsigned long sdlportflags = iscapture ? JackPortIsInput : JackPortIsOutput; in JACK_OpenDevice()
292 …const JackProcessCallback callback = iscapture ? jackProcessCaptureCallback : jackProcessPlaybackC… in JACK_OpenDevice()
293 const char *sdlportstr = iscapture ? "input" : "output"; in JACK_OpenDevice()
388 const char *srcport = iscapture ? devports[audio_ports[i]] : sdlport; in JACK_OpenDevice()
389 const char *dstport = iscapture ? sdlport : devports[audio_ports[i]]; in JACK_OpenDevice()
/AliOS-Things-master/components/SDL2/src/audio/alsa/
A DSDL_alsa_audio.c519 ALSA_OpenDevice(_THIS, void *handle, const char *devname, int iscapture) in ALSA_OpenDevice() argument
546 iscapture ? SND_PCM_STREAM_CAPTURE : SND_PCM_STREAM_PLAYBACK, in ALSA_OpenDevice()
697 if (!iscapture) { in ALSA_OpenDevice()
707 if (!iscapture) { in ALSA_OpenDevice()
719 SDL_bool iscapture; member
724 add_device(const int iscapture, const char *name, void *hint, ALSA_Device **pSeen) in add_device() argument
769 SDL_AddAudioDevice(iscapture, desc, handle); in add_device()
773 dev->iscapture = iscapture; in add_device()
873 …_strcmp(dev->name, name) == 0) && (((isinput) && dev->iscapture) || ((isoutput) && !dev->iscapture in ALSA_HotplugThread()
907 SDL_RemoveAudioDevice(dev->iscapture, dev->name); in ALSA_HotplugThread()
/AliOS-Things-master/components/SDL2/src/audio/dsp/
A 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()
/AliOS-Things-master/components/SDL2/src/audio/nas/
A 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()
/AliOS-Things-master/components/SDL2/src/audio/sndio/
A DSDL_sndioaudio.c240 SNDIO_OpenDevice(_THIS, void *handle, const char *devname, int iscapture) in SNDIO_OpenDevice() argument
258 iscapture ? SIO_REC : SIO_PLAY, iscapture)) == NULL) { in SNDIO_OpenDevice()
263 if (iscapture && (this->hidden->pfd = in SNDIO_OpenDevice()
/AliOS-Things-master/components/SDL2/src/audio/alios/
A DSDL_alios_audio.c101 AOS_OpenDevice(_THIS, void *handle, const char *devname, int iscapture) in AOS_OpenDevice() argument
118 …status = snd_pcm_open(&pcm_handle, "hw", iscapture ? SND_PCM_STREAM_CAPTURE : SND_PCM_STREAM_PLAYB… in AOS_OpenDevice()
164 if (!iscapture) { in AOS_OpenDevice()
/AliOS-Things-master/components/SDL2/include/
A DSDL_audio.h344 extern DECLSPEC int SDLCALL SDL_GetNumAudioDevices(int iscapture);
360 int iscapture);
378 int iscapture,

Completed in 40 milliseconds

12