Searched refs:audio_fd (Results 1 – 13 of 13) sorted by relevance
/AliOS-Things-master/components/SDL2/src/audio/dsp/ |
A D | SDL_dspaudio.c | 62 if (this->hidden->audio_fd >= 0) { in DSP_CloseDevice() 63 close(this->hidden->audio_fd); in DSP_CloseDevice() 106 this->hidden->audio_fd = open(devname, flags, 0); in DSP_OpenDevice() 107 if (this->hidden->audio_fd < 0) { in DSP_OpenDevice() 114 ctlflags = fcntl(this->hidden->audio_fd, F_GETFL); in DSP_OpenDevice() 116 if (fcntl(this->hidden->audio_fd, F_SETFL, ctlflags) < 0) { in DSP_OpenDevice() 229 ioctl(this->hidden->audio_fd, SNDCTL_DSP_GETOSPACE, &info); in DSP_OpenDevice() 256 if (write(h->audio_fd, h->mixbuf, h->mixlen) == -1) { in DSP_PlayDevice() 274 return (int) read(this->hidden->audio_fd, buffer, buflen); in DSP_CaptureFromDevice() 282 if (ioctl(h->audio_fd, SNDCTL_DSP_GETISPACE, &info) == 0) { in DSP_FlushCapture() [all …]
|
A D | SDL_dspaudio.h | 34 int audio_fd; member
|
/AliOS-Things-master/components/SDL2/src/audio/netbsd/ |
A D | SDL_netbsdaudio.c | 63 if (ioctl(this->hidden->audio_fd, AUDIO_GETINFO, &info) < 0) { in NETBSDAUDIO_Status() 133 written = write(h->audio_fd, h->mixbuf, h->mixlen); in NETBSDAUDIO_PlayDevice() 159 br = read(this->hidden->audio_fd, buffer, buflen); in NETBSDAUDIO_CaptureFromDevice() 179 if (ioctl(this->hidden->audio_fd, AUDIO_GETINFO, &info) < 0) { in NETBSDAUDIO_FlushCapture() 186 const int br = read(this->hidden->audio_fd, buf, len); in NETBSDAUDIO_FlushCapture() 197 if (this->hidden->audio_fd >= 0) { in NETBSDAUDIO_CloseDevice() 198 close(this->hidden->audio_fd); in NETBSDAUDIO_CloseDevice() 229 this->hidden->audio_fd = open(devname, iscapture ? O_RDONLY : O_WRONLY); in NETBSDAUDIO_OpenDevice() 230 if (this->hidden->audio_fd < 0) { in NETBSDAUDIO_OpenDevice() 294 (void) ioctl(this->hidden->audio_fd, AUDIO_SETINFO, &info); in NETBSDAUDIO_OpenDevice() [all …]
|
A D | SDL_netbsdaudio.h | 33 int audio_fd; member
|
/AliOS-Things-master/components/SDL2/src/audio/sun/ |
A D | SDL_sunaudio.c | 72 ioctl(this->hidden->audio_fd, AUDIO_GETBUFINFO, &info); in CheckUnderflow() 89 ioctl(this->hidden->audio_fd, AUDIO_GETBUFINFO, &info); in SUNAUDIO_WaitDevice() 101 SDL_IOReady(this->hidden->audio_fd, SDL_TRUE, -1); in SUNAUDIO_WaitDevice() 154 if (write(this->hidden->audio_fd, this->hidden->ulaw_buf, in SUNAUDIO_PlayDevice() 164 if (write(this->hidden->audio_fd, this->hidden->mixbuf, in SUNAUDIO_PlayDevice() 183 if (this->hidden->audio_fd >= 0) { in SUNAUDIO_CloseDevice() 184 close(this->hidden->audio_fd); in SUNAUDIO_CloseDevice() 219 this->hidden->audio_fd = open(devname, flags, 0); in SUNAUDIO_OpenDevice() 220 if (this->hidden->audio_fd < 0) { in SUNAUDIO_OpenDevice() 267 if (ioctl(this->hidden->audio_fd, AUDIO_SETINFO, &info) == 0) { in SUNAUDIO_OpenDevice() [all …]
|
A D | SDL_sunaudio.h | 34 int audio_fd; member
|
/AliOS-Things-master/components/SDL2/src/audio/ |
A D | SDL_audiodev.c | 54 const int audio_fd = open(fname, flags, 0); in test_device() local 55 if (audio_fd >= 0) { in test_device() 56 const int okay = test(audio_fd); in test_device() 57 close(audio_fd); in test_device()
|
/AliOS-Things-master/components/SDL2/src/audio/esd/ |
A D | SDL_esdaudio.c | 150 written = write(this->hidden->audio_fd, in ESD_PlayDevice() 176 if (this->hidden->audio_fd >= 0) { in ESD_CloseDevice() 177 SDL_NAME(esd_close) (this->hidden->audio_fd); in ESD_CloseDevice() 224 this->hidden->audio_fd = -1; in ESD_OpenDevice() 261 this->hidden->audio_fd = in ESD_OpenDevice() 265 if (this->hidden->audio_fd < 0) { in ESD_OpenDevice()
|
A D | SDL_esdaudio.h | 34 int audio_fd; member
|
/AliOS-Things-master/components/SDL2/src/audio/paudio/ |
A D | SDL_paudio.c | 144 if (ioctl(this->hidden->audio_fd, AUDIO_BUFFER, &paud_bufinfo) < 0) { in PAUDIO_WaitDevice() 159 if (SDL_IOReady(this->hidden->audio_fd, SDL_TRUE, timeoutMS) <= 0) { in PAUDIO_WaitDevice() 168 this->hidden->audio_fd = -1; in PAUDIO_WaitDevice() 188 written = write(this->hidden->audio_fd, mixbuf, mixlen); in PAUDIO_PlayDevice() 218 if (this->hidden->audio_fd >= 0) { in PAUDIO_CloseDevice() 219 close(this->hidden->audio_fd); in PAUDIO_CloseDevice() 250 this->hidden->audio_fd = fd; in PAUDIO_OpenDevice()
|
A D | SDL_paudio.h | 34 int audio_fd; member
|
/AliOS-Things-master/components/SDL2/src/audio/qsa/ |
A D | SDL_qsa_audio.h | 45 int audio_fd; member
|
A D | SDL_qsa_audio.c | 123 result = SDL_IOReady(this->hidden->audio_fd, !this->hidden->iscapture, 2 * 1000); in QSA_WaitDevice() 445 this->hidden->audio_fd = in QSA_OpenDevice() 449 this->hidden->audio_fd = in QSA_OpenDevice() 454 if (this->hidden->audio_fd < 0) { in QSA_OpenDevice()
|
Completed in 16 milliseconds