28 #include <sys/ioctl.h>
29 #include <sys/soundcard.h>
66 memcpy(
s->buffer +
s->buffer_ptr, buf,
len);
73 if (ret < 0 && (errno != EAGAIN && errno != EINTR))
Libavcodec external API header.
Main libavdevice API header.
const char * av_default_item_name(void *ptr)
Return the context name.
#define LIBAVUTIL_VERSION_INT
common internal API header
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
@ AV_CLASS_CATEGORY_DEVICE_AUDIO_OUTPUT
int ff_oss_audio_open(AVFormatContext *s1, int is_output, const char *audio_device)
int ff_oss_audio_close(OSSAudioData *s)
#define OSS_AUDIO_BLOCK_SIZE
static int audio_write_trailer(AVFormatContext *s1)
static int audio_write_packet(AVFormatContext *s1, AVPacket *pkt)
AVOutputFormat ff_oss_muxer
static const AVClass oss_muxer_class
static int audio_write_header(AVFormatContext *s1)
Describe the class of an AVClass context structure.
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
int sample_rate
Audio only.
This structure stores compressed data.
AVCodecParameters * codecpar
Codec parameters associated with this stream.