Searched refs:audio_fd (Results 1 - 2 of 2) sorted by relevance
/third_party/ffmpeg/libavdevice/ |
H A D | oss.c | 43 int audio_fd; in ff_oss_audio_open() local 48 audio_fd = avpriv_open(audio_device, O_WRONLY); in ff_oss_audio_open() 50 audio_fd = avpriv_open(audio_device, O_RDONLY); in ff_oss_audio_open() 51 if (audio_fd < 0) { in ff_oss_audio_open() 62 if (fcntl(audio_fd, F_SETFL, O_NONBLOCK) < 0) { in ff_oss_audio_open() 79 err = ioctl(audio_fd, SNDCTL_DSP_GETFMTS, &tmp); in ff_oss_audio_open() 113 close(audio_fd); in ff_oss_audio_open() 116 err=ioctl(audio_fd, SNDCTL_DSP_SETFMT, &tmp); in ff_oss_audio_open() 120 err = ioctl(audio_fd, SNDCTL_DSP_STEREO, &tmp); in ff_oss_audio_open() 124 err = ioctl(audio_fd, SNDCTL_DSP_SPEE in ff_oss_audio_open() [all...] |
/third_party/libsnd/programs/ |
H A D | sndfile-play.c | 742 int audio_fd, error, done ; in solaris_play() local 757 if ((audio_fd = open ("/dev/audio", O_WRONLY | O_NONBLOCK)) < 0) in solaris_play() 770 if ((error = ioctl (audio_fd, AUDIO_SETINFO, &audio_info))) in solaris_play() 792 write_count = write (audio_fd, &(buffer [start_count]), output_count) ; in solaris_play() 804 close (audio_fd) ; in solaris_play()
|
Completed in 3 milliseconds