Home | History | Annotate | Download | only in client

Lines Matching defs:audio_fd

13 int audio_fd;
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);
84 ioctl(audio_fd, SNDCTL_DSP_GETFMTS, &fmt);
96 if (!ioctl(audio_fd, SNDCTL_DSP_SPEED, &tryrates[i])) break;
114 * info.fragsize, PROT_WRITE, MAP_FILE|MAP_SHARED, audio_fd, 0);
119 close(audio_fd);
126 rc = ioctl(audio_fd, SNDCTL_DSP_STEREO, &tmp);
131 close(audio_fd);
139 rc = ioctl(audio_fd, SNDCTL_DSP_SPEED, &shm->speed);
144 close(audio_fd);
151 rc = ioctl(audio_fd, SNDCTL_DSP_SETFMT, &rc);
156 close(audio_fd);
163 rc = ioctl(audio_fd, SNDCTL_DSP_SETFMT, &rc);
168 close(audio_fd);
176 close(audio_fd);
183 rc = ioctl(audio_fd, SNDCTL_DSP_SETTRIGGER, &tmp);
188 close(audio_fd);
192 rc = ioctl(audio_fd, SNDCTL_DSP_SETTRIGGER, &tmp);
197 close(audio_fd);
215 if (ioctl(audio_fd, SNDCTL_DSP_GETOPTR, &count)==-1)
219 close(audio_fd);
235 close(audio_fd);