/external/quake/quake/src/QW/client/ |
H A D | snd_linux.c | 13 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 D | snd_linux.cpp | 32 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 D | snd_sun.cpp | 33 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 D | SDL_bsdaudio.h | 34 int audio_fd; member in struct:SDL_PrivateAudioData 51 #define audio_fd (this->hidden->audio_fd) macro
|
H A D | SDL_bsdaudio.c | 122 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 D | SDL_dspaudio.h | 34 int audio_fd; member in struct:SDL_PrivateAudioData 46 #define audio_fd (this->hidden->audio_fd) macro
|
H A D | SDL_dspaudio.c | 108 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 D | SDL_esdaudio.h | 34 int audio_fd; member in struct:SDL_PrivateAudioData 50 #define audio_fd (this->hidden->audio_fd) macro
|
H A D | SDL_esdaudio.c | 165 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 D | SDL_paudio.h | 34 int audio_fd; member in struct:SDL_PrivateAudioData 50 #define audio_fd (this->hidden->audio_fd) macro
|
H A D | SDL_paudio.c | 105 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 D | SDL_audiodev.c | 53 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 D | SDL_dmaaudio.h | 34 int audio_fd; member in struct:SDL_PrivateAudioData 51 #define audio_fd (this->hidden->audio_fd) macro
|
H A D | SDL_dmaaudio.c | 118 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 D | SDL_sunaudio.h | 34 int audio_fd; member in struct:SDL_PrivateAudioData 46 #define audio_fd (this->hidden->audio_fd) macro
|
H A D | SDL_sunaudio.c | 100 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 D | SDL_nto_audio.h | 42 int audio_fd; member in struct:SDL_PrivateAudioData 60 #define audio_fd (this->hidden->audio_fd) macro
|
H A D | SDL_nto_audio.c | 230 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 D | audio_a2dp_hw.c | 99 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...] |