HomeSort by: relevance | last modified time | path
    Searched defs:audiofd (Results 1 - 3 of 3) sorted by relevancy

  /src/tests/dev/audio/
h_pad.c 96 int padfd, audiofd; local in function:main
148 audiofd = rump_sys_open("/dev/audio0", O_RDWR);
149 if (audiofd == -1)
159 n = rump_sys_ioctl(audiofd, AUDIO_SETINFO, &ai);
164 n = rump_sys_write(audiofd, inpbuf, inplen);
  /src/usr.bin/audio/record/
record.c 60 static int audiofd; variable in typeref:typename:int
237 audiofd = open(device, O_RDONLY);
238 if (audiofd < 0 && device == defdevice) {
240 audiofd = open(device, O_RDONLY);
242 if (audiofd < 0)
249 if (ioctl(audiofd, AUDIO_GETINFO, &oinfo) < 0)
292 if (ioctl(audiofd, AUDIO_SETINFO, &info) < 0)
357 if ((nread = read(audiofd, buffer, bufsize)) == -1)
391 if (ioctl(audiofd, AUDIO_SETINFO, &info) < 0)
394 close(audiofd);
    [all...]
  /src/usr.bin/audio/play/
play.c 79 static int audiofd = -1; variable in typeref:typename:int
181 audiofd = open(device, O_WRONLY);
182 if (audiofd < 0 && device == defdevice) {
184 audiofd = open(device, O_WRONLY);
186 if (audiofd < 0)
189 if (ioctl(audiofd, AUDIO_GETINFO, &info) < 0)
215 if (audiofd != -1) {
216 (void)ioctl(audiofd, AUDIO_FLUSH, NULL);
217 (void)ioctl(audiofd, AUDIO_SETINFO, &info);
218 close(audiofd);
    [all...]

Completed in 13 milliseconds