Searched refs:audio_fd (Results 1 - 19 of 19) sorted by relevance

/external/quake/quake/src/QW/client/
H A Dsnd_linux.c13 int audio_fd; variable
33 audio_fd = open("/dev/dsp", O_RDWR);
34 if (audio_fd < 0)
41 rc = ioctl(audio_fd, SNDCTL_DSP_RESET, 0);
46 close(audio_fd);
50 if (ioctl(audio_fd, SNDCTL_DSP_GETCAPS, &caps)==-1)
54 close(audio_fd);
61 close(audio_fd);
65 if (ioctl(audio_fd, SNDCTL_DSP_GETOSPACE, &info)==-1)
69 close(audio_fd);
[all...]
/external/quake/quake/src/WinQuake/
H A Dsnd_linux.cpp32 int audio_fd; variable
52 audio_fd = open("/dev/dsp", O_RDWR);
53 if (audio_fd < 0)
60 rc = ioctl(audio_fd, SNDCTL_DSP_RESET, 0);
65 close(audio_fd);
69 if (ioctl(audio_fd, SNDCTL_DSP_GETCAPS, &caps)==-1)
73 close(audio_fd);
80 close(audio_fd);
84 if (ioctl(audio_fd, SNDCTL_DSP_GETOSPACE, &info)==-1)
88 close(audio_fd);
[all...]
H A Dsnd_sun.cpp33 int audio_fd; variable
65 audio_fd = open("/dev/audio", O_WRONLY|O_NDELAY);
67 if (audio_fd < 0) {
76 if (ioctl(audio_fd, AUDIO_GETINFO, &info) < 0) {
79 close(audio_fd);
86 if (fcntl(audio_fd, F_SETFL, O_NONBLOCK) < 0) {
88 close(audio_fd);
102 if (ioctl(audio_fd, AUDIO_SETINFO, &info) < 0) {
107 if (ioctl(audio_fd, AUDIO_SETINFO, &info) < 0) {
109 close(audio_fd);
[all...]
/external/qemu/distrib/sdl-1.2.15/src/audio/bsd/
H A DSDL_bsdaudio.h34 int audio_fd; member in struct:SDL_PrivateAudioData
51 #define audio_fd (this->hidden->audio_fd) macro
H A DSDL_bsdaudio.c122 audio_fd = -1;
161 FD_SET(audio_fd, &fdset);
167 if ( select(audio_fd+1, NULL, &fdset, NULL, &timeout) <= 0 ) {
177 audio_fd = -1;
196 written = write(audio_fd, &mixbuf[p], mixlen-p);
238 if(audio_fd >= 0) {
239 close(audio_fd);
240 audio_fd = -1;
250 if(ioctl(audio_fd, AUDIO_GETINFO, &info) < 0) {
318 audio_fd
[all...]
/external/qemu/distrib/sdl-1.2.15/src/audio/dsp/
H A DSDL_dspaudio.h34 int audio_fd; member in struct:SDL_PrivateAudioData
46 #define audio_fd (this->hidden->audio_fd) macro
H A DSDL_dspaudio.c108 audio_fd = -1;
135 if (write(audio_fd, mixbuf, mixlen)==-1)
157 if ( audio_fd >= 0 ) {
158 close(audio_fd);
159 audio_fd = -1;
181 audio_fd = SDL_OpenAudioPath(audiodev, sizeof(audiodev), OPEN_FLAGS, 0);
182 if ( audio_fd < 0 ) {
190 flags = fcntl(audio_fd, F_GETFL);
192 if ( fcntl(audio_fd, F_SETFL, flags) < 0 ) {
200 if ( ioctl(audio_fd, SNDCTL_DSP_GETFMT
[all...]
/external/qemu/distrib/sdl-1.2.15/src/audio/esd/
H A DSDL_esdaudio.h34 int audio_fd; member in struct:SDL_PrivateAudioData
50 #define audio_fd (this->hidden->audio_fd) macro
H A DSDL_esdaudio.c165 audio_fd = -1;
214 written = write(audio_fd, mixbuf, mixlen);
241 if ( audio_fd >= 0 ) {
242 SDL_NAME(esd_close)(audio_fd);
243 audio_fd = -1;
299 audio_fd = SDL_NAME(esd_play_stream)(format, spec->freq, NULL, get_progname());
300 if ( audio_fd < 0 ) {
/external/qemu/distrib/sdl-1.2.15/src/audio/paudio/
H A DSDL_paudio.h34 int audio_fd; member in struct:SDL_PrivateAudioData
50 #define audio_fd (this->hidden->audio_fd) macro
H A DSDL_paudio.c105 audio_fd = -1;
144 FD_SET(audio_fd, &fdset);
146 if ( ioctl(audio_fd, AUDIO_BUFFER, &paud_bufinfo) < 0 ) {
168 if ( select(audio_fd+1, NULL, &fdset, NULL, &timeout) <= 0 ) {
178 audio_fd = -1;
195 written = write(audio_fd, mixbuf, mixlen);
227 if ( audio_fd >= 0 ) {
228 close(audio_fd);
229 audio_fd = -1;
249 audio_fd
[all...]
/external/qemu/distrib/sdl-1.2.15/src/audio/
H A DSDL_audiodev.c53 int audio_fd; local
73 audio_fd = open(audiodev, flags, 0);
76 if ( (audio_fd < 0) && (SDL_strlen(audiodev) < (sizeof(audiopath)-3)) ) {
87 audio_fd = open(audiopath, flags, 0);
89 } while ( exists && (audio_fd < 0) );
96 return(audio_fd);
129 int audio_fd; local
138 audio_fd = open(audiodev, flags, 0);
143 return audio_fd;
149 int audio_fd; local
[all...]
/external/qemu/distrib/sdl-1.2.15/src/audio/dma/
H A DSDL_dmaaudio.h34 int audio_fd; member in struct:SDL_PrivateAudioData
51 #define audio_fd (this->hidden->audio_fd) macro
H A DSDL_dmaaudio.c118 audio_fd = -1;
167 FD_SET(audio_fd, &fdset);
173 if ( select(audio_fd+1, NULL, &fdset, NULL, &timeout) <= 0 ) {
193 audio_fd = -1;
222 if ( ioctl(audio_fd, SNDCTL_DSP_GETOPTR, &info) < 0 ) {
244 if ( audio_fd >= 0 ) {
245 close(audio_fd);
246 audio_fd = -1;
257 close(audio_fd);
258 audio_fd
[all...]
/external/qemu/distrib/sdl-1.2.15/src/audio/sun/
H A DSDL_sunaudio.h34 int audio_fd; member in struct:SDL_PrivateAudioData
46 #define audio_fd (this->hidden->audio_fd) macro
H A DSDL_sunaudio.c100 audio_fd = -1;
126 ioctl(audio_fd, AUDIO_GETINFO, &info);
142 ioctl(audio_fd, AUDIO_GETINFO, &info);
157 FD_SET(audio_fd, &fdset);
158 select(audio_fd+1, NULL, &fdset, NULL, NULL);
208 if ( write(audio_fd, ulaw_buf, fragsize) < 0 ) {
217 if ( write(audio_fd, mixbuf, this->spec.size) < 0 ) {
240 close(audio_fd);
252 audio_fd = -1;
283 audio_fd
[all...]
/external/qemu/distrib/sdl-1.2.15/src/audio/nto/
H A DSDL_nto_audio.h42 int audio_fd; member in struct:SDL_PrivateAudioData
60 #define audio_fd (this->hidden->audio_fd) macro
H A DSDL_nto_audio.c230 FD_SET(audio_fd, &wfds);
233 selectret=select(audio_fd + 1, NULL, &wfds, NULL, NULL);
239 default: if (FD_ISSET(audio_fd, &wfds))
486 if ((audio_fd = snd_pcm_file_descriptor(audio_handle, SND_PCM_CHANNEL_PLAYBACK)) < 0)
/external/bluetooth/bluedroid/audio_a2dp_hw/
H A Daudio_a2dp_hw.c99 int audio_fd; member in struct:a2dp_stream_out
315 out->audio_fd = AUDIO_SKT_DISCONNECTED;
346 if (out->audio_fd == AUDIO_SKT_DISCONNECTED)
348 out->audio_fd = skt_connect(out, A2DP_DATA_PATH);
350 if (out->audio_fd < 0)
386 skt_disconnect(out->audio_fd);
387 out->audio_fd = AUDIO_SKT_DISCONNECTED;
411 skt_disconnect(out->audio_fd);
413 out->audio_fd = AUDIO_SKT_DISCONNECTED;
443 DEBUG("write %d bytes (fd %d)", bytes, out->audio_fd);
[all...]

Completed in 642 milliseconds