Home
last modified time | relevance | path

Searched refs:audio_fd (Results 1 – 21 of 21) sorted by relevance

/external/qemu/distrib/sdl-1.2.12/src/audio/
DSDL_audiodev.c53 int audio_fd; in SDL_OpenAudioPath() local
73 audio_fd = open(audiodev, flags, 0); in SDL_OpenAudioPath()
76 if ( (audio_fd < 0) && (SDL_strlen(audiodev) < (sizeof(audiopath)-3)) ) { in SDL_OpenAudioPath()
87 audio_fd = open(audiopath, flags, 0); in SDL_OpenAudioPath()
89 } while ( exists && (audio_fd < 0) ); in SDL_OpenAudioPath()
96 return(audio_fd); in SDL_OpenAudioPath()
129 int audio_fd; in OpenUserDefinedDevice() local
138 audio_fd = open(audiodev, flags, 0); in OpenUserDefinedDevice()
143 return audio_fd; in OpenUserDefinedDevice()
149 int audio_fd; in SDL_OpenAudioPath() local
[all …]
/external/qemu/distrib/sdl-1.2.12/src/audio/dma/
DSDL_dmaaudio.c118 audio_fd = -1; in Audio_CreateDevice()
167 FD_SET(audio_fd, &fdset); in DMA_WaitAudio()
173 if ( select(audio_fd+1, NULL, &fdset, NULL, &timeout) <= 0 ) { in DMA_WaitAudio()
193 audio_fd = -1; in DMA_WaitAudio()
222 if ( ioctl(audio_fd, SNDCTL_DSP_GETOPTR, &info) < 0 ) { in DMA_GetAudioBuf()
244 if ( audio_fd >= 0 ) { in DMA_CloseAudio()
245 close(audio_fd); in DMA_CloseAudio()
246 audio_fd = -1; in DMA_CloseAudio()
257 close(audio_fd); in DMA_ReopenAudio()
258 audio_fd = open(audiodev, O_RDWR, 0); in DMA_ReopenAudio()
[all …]
DSDL_dmaaudio.h34 int audio_fd; member
51 #define audio_fd (this->hidden->audio_fd) macro
/external/qemu/distrib/sdl-1.2.12/src/audio/dsp/
DSDL_dspaudio.c108 audio_fd = -1; in Audio_CreateDevice()
135 if (write(audio_fd, mixbuf, mixlen)==-1) in DSP_PlayAudio()
157 if ( audio_fd >= 0 ) { in DSP_CloseAudio()
158 close(audio_fd); in DSP_CloseAudio()
159 audio_fd = -1; in DSP_CloseAudio()
181 audio_fd = SDL_OpenAudioPath(audiodev, sizeof(audiodev), OPEN_FLAGS, 0); in DSP_OpenAudio()
182 if ( audio_fd < 0 ) { in DSP_OpenAudio()
190 flags = fcntl(audio_fd, F_GETFL); in DSP_OpenAudio()
192 if ( fcntl(audio_fd, F_SETFL, flags) < 0 ) { in DSP_OpenAudio()
200 if ( ioctl(audio_fd, SNDCTL_DSP_GETFMTS, &value) < 0 ) { in DSP_OpenAudio()
[all …]
DSDL_dspaudio.h34 int audio_fd; member
46 #define audio_fd (this->hidden->audio_fd) macro
/external/qemu/distrib/sdl-1.2.12/src/audio/bsd/
DSDL_bsdaudio.c122 audio_fd = -1; in Audio_CreateDevice()
161 FD_SET(audio_fd, &fdset); in OBSD_WaitAudio()
167 if ( select(audio_fd+1, NULL, &fdset, NULL, &timeout) <= 0 ) { in OBSD_WaitAudio()
177 audio_fd = -1; in OBSD_WaitAudio()
196 written = write(audio_fd, &mixbuf[p], mixlen-p); in OBSD_PlayAudio()
238 if(audio_fd >= 0) { in OBSD_CloseAudio()
239 close(audio_fd); in OBSD_CloseAudio()
240 audio_fd = -1; in OBSD_CloseAudio()
250 if(ioctl(audio_fd, AUDIO_GETINFO, &info) < 0) { in OBSD_Status()
318 audio_fd = SDL_OpenAudioPath(audiodev, sizeof(audiodev), OPEN_FLAGS, 0); in OBSD_OpenAudio()
[all …]
DSDL_bsdaudio.h34 int audio_fd; member
51 #define audio_fd (this->hidden->audio_fd) macro
/external/qemu/distrib/sdl-1.2.12/src/audio/paudio/
DSDL_paudio.c105 audio_fd = -1; in Audio_CreateDevice()
144 FD_SET(audio_fd, &fdset); in Paud_WaitAudio()
146 if ( ioctl(audio_fd, AUDIO_BUFFER, &paud_bufinfo) < 0 ) { in Paud_WaitAudio()
168 if ( select(audio_fd+1, NULL, &fdset, NULL, &timeout) <= 0 ) { in Paud_WaitAudio()
178 audio_fd = -1; in Paud_WaitAudio()
195 written = write(audio_fd, mixbuf, mixlen); in Paud_PlayAudio()
227 if ( audio_fd >= 0 ) { in Paud_CloseAudio()
228 close(audio_fd); in Paud_CloseAudio()
229 audio_fd = -1; in Paud_CloseAudio()
249 audio_fd = SDL_OpenAudioPath(audiodev, sizeof(audiodev), OPEN_FLAGS, 0); in Paud_OpenAudio()
[all …]
DSDL_paudio.h34 int audio_fd; member
50 #define audio_fd (this->hidden->audio_fd) macro
/external/qemu/distrib/sdl-1.2.12/src/audio/sun/
DSDL_sunaudio.c100 audio_fd = -1; in Audio_CreateDevice()
126 ioctl(audio_fd, AUDIO_GETINFO, &info); in CheckUnderflow()
142 ioctl(audio_fd, AUDIO_GETINFO, &info); in DSP_WaitAudio()
157 FD_SET(audio_fd, &fdset); in DSP_WaitAudio()
158 select(audio_fd+1, NULL, &fdset, NULL, NULL); in DSP_WaitAudio()
208 if ( write(audio_fd, ulaw_buf, fragsize) < 0 ) { in DSP_PlayAudio()
217 if ( write(audio_fd, mixbuf, this->spec.size) < 0 ) { in DSP_PlayAudio()
240 close(audio_fd); in DSP_CloseAudio()
252 audio_fd = -1; in DSP_OpenAudio()
283 audio_fd = SDL_OpenAudioPath(audiodev, sizeof(audiodev), OPEN_FLAGS, 1); in DSP_OpenAudio()
[all …]
DSDL_sunaudio.h34 int audio_fd; member
46 #define audio_fd (this->hidden->audio_fd) macro
/external/qemu/distrib/sdl-1.2.12/src/audio/esd/
DSDL_esdaudio.c165 audio_fd = -1; in Audio_CreateDevice()
214 written = write(audio_fd, mixbuf, mixlen); in ESD_PlayAudio()
241 if ( audio_fd >= 0 ) { in ESD_CloseAudio()
242 SDL_NAME(esd_close)(audio_fd); in ESD_CloseAudio()
243 audio_fd = -1; in ESD_CloseAudio()
299 audio_fd = SDL_NAME(esd_play_stream)(format, spec->freq, NULL, get_progname()); in ESD_OpenAudio()
300 if ( audio_fd < 0 ) { in ESD_OpenAudio()
DSDL_esdaudio.h34 int audio_fd; member
50 #define audio_fd (this->hidden->audio_fd) macro
/external/qemu/distrib/sdl-1.2.12/src/audio/nto/
DSDL_nto_audio.h42 int audio_fd; member
60 #define audio_fd (this->hidden->audio_fd) macro
DSDL_nto_audio.c230 FD_SET(audio_fd, &wfds); in NTO_WaitAudio()
233 selectret=select(audio_fd + 1, NULL, &wfds, NULL, NULL); in NTO_WaitAudio()
239 default: if (FD_ISSET(audio_fd, &wfds)) in NTO_WaitAudio()
486 if ((audio_fd = snd_pcm_file_descriptor(audio_handle, SND_PCM_CHANNEL_PLAYBACK)) < 0) in NTO_OpenAudio()
/external/bluetooth/hcidump/parser/
Dparser.c46 int pppdump_fd, int audio_fd) in init_parser() argument
57 parser.audio_fd = audio_fd; in init_parser()
199 fr->audio_fd = frm->audio_fd; in add_frame()
Dparser.h49 int audio_fd; member
103 int audio_fd; member
110 int pppdump_fd, int audio_fd);
Dsdp.c657 fr->audio_fd = frm->audio_fd; in frame_add()
Dl2cap.c934 fr->audio_fd = frm->audio_fd; in l2cap_dump()
Dhci.c3238 if (frm->audio_fd > fileno(stderr)) in sco_dump()
3239 len = write(frm->audio_fd, frm->ptr + HCI_SCO_HDR_SIZE, hdr->dlen); in sco_dump()
/external/bluetooth/hcidump/src/
Dhcidump.c302 frm.audio_fd = parser.audio_fd; in process_frames()
999 int opt, pppdump_fd = -1, audio_fd = -1; in main() local
1143 audio_fd = open_file(audio_file, AUDIO, flags); in main()
1147 init_parser(flags, filter, defpsm, defcompid, pppdump_fd, audio_fd); in main()
1152 init_parser(flags, filter, defpsm, defcompid, pppdump_fd, audio_fd); in main()
1162 init_parser(flags, filter, defpsm, defcompid, pppdump_fd, audio_fd); in main()
1172 init_parser(flags, filter, defpsm, defcompid, pppdump_fd, audio_fd); in main()