55 memcpy(
s->buffer +
s->buffer_offset, buf,
len);
58 s->buffer_offset +=
len;
59 if (
s->buffer_offset >=
s->buffer_size) {
60 ret = sio_write(
s->hdl,
s->buffer,
s->buffer_size);
61 if (ret == 0 || sio_eof(
s->hdl))
75 sio_write(
s->hdl,
s->buffer,
s->buffer_offset);
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
av_cold int ff_sndio_open(AVFormatContext *s1, int is_output, const char *audio_device)
int ff_sndio_close(SndioData *s)
static av_cold int audio_write_header(AVFormatContext *s1)
static int audio_write_trailer(AVFormatContext *s1)
static const AVClass sndio_muxer_class
static int audio_write_packet(AVFormatContext *s1, AVPacket *pkt)
AVOutputFormat ff_sndio_muxer
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.