29#include <sys/soundcard.h>
59 const uint8_t *buf =
pkt->data;
65 memcpy(
s->buffer +
s->buffer_ptr, buf,
len);
72 if (ret < 0 && (errno != EAGAIN && errno != EINTR))
92 .class_name =
"OSS outdev",
const FFOutputFormat ff_oss_muxer
static av_cold int audio_write_header(AVFormatContext *s1)
static int audio_write_packet(AVFormatContext *s1, AVPacket *pkt)
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)
static const AVClass oss_muxer_class
static int audio_write_header(AVFormatContext *s1)
int nb_channels
Number of channels in this layout.
Describe the class of an AVClass context structure.
AVChannelLayout ch_layout
The channel layout and number of channels.
int sample_rate
The number of audio samples per second.
char * url
input or output URL.
void * priv_data
Format private data.
AVStream ** streams
A list of all streams in the file.
This structure stores compressed data.
AVCodecParameters * codecpar
Codec parameters associated with this stream.