Libav
Functions | Variables
oss_audio_enc.c File Reference
#include "config.h"
#include <sys/soundcard.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include "libavutil/internal.h"
#include "libavcodec/avcodec.h"
#include "libavformat/avformat.h"
#include "libavformat/internal.h"
#include "oss_audio.h"

Go to the source code of this file.

Functions

static int audio_write_header (AVFormatContext *s1)
 
static int audio_write_packet (AVFormatContext *s1, AVPacket *pkt)
 
static int audio_write_trailer (AVFormatContext *s1)
 

Variables

AVOutputFormat ff_oss_muxer
 

Function Documentation

static int audio_write_header ( AVFormatContext s1)
static

Definition at line 43 of file oss_audio_enc.c.

static int audio_write_packet ( AVFormatContext s1,
AVPacket pkt 
)
static

Definition at line 60 of file oss_audio_enc.c.

static int audio_write_trailer ( AVFormatContext s1)
static

Definition at line 87 of file oss_audio_enc.c.

Variable Documentation

AVOutputFormat ff_oss_muxer
Initial value:
= {
.name = "oss",
.long_name = NULL_IF_CONFIG_SMALL("OSS (Open Sound System) playback"),
.priv_data_size = sizeof(OSSAudioData),
.video_codec = AV_CODEC_ID_NONE,
.write_header = audio_write_header,
.write_packet = audio_write_packet,
.write_trailer = audio_write_trailer,
.flags = AVFMT_NOFILE,
}
#define AV_NE(be, le)
Definition: common.h:45
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:145
static int audio_write_trailer(AVFormatContext *s1)
Definition: oss_audio_enc.c:87
static int audio_write_packet(AVFormatContext *s1, AVPacket *pkt)
Definition: oss_audio_enc.c:60
#define AVFMT_NOFILE
Demuxer will use avio_open, no opened file should be provided by the caller.
Definition: avformat.h:409
static int audio_write_header(AVFormatContext *s1)
Definition: oss_audio_enc.c:43

Definition at line 95 of file oss_audio_enc.c.