27 #include <soundcard.h>
29 #include <sys/soundcard.h>
36 #include <sys/ioctl.h>
80 struct audio_buf_info abufi;
89 if (ret<0)
return AVERROR(errno);
97 if (ioctl(s->
fd, SNDCTL_DSP_GETISPACE, &abufi) == 0) {
98 bdelay += abufi.bytes;
108 short *p = (
short *) pkt->
data;
110 for (i = 0; i <
ret; i += 4) {
148 .priv_class = &oss_demuxer_class,