All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
pulse_audio_enc.c File Reference
#include <pulse/simple.h>
#include <pulse/error.h>
#include "libavformat/avformat.h"
#include "libavformat/internal.h"
#include "libavutil/opt.h"
#include "libavutil/time.h"
#include "libavutil/log.h"
#include "pulse_audio_common.h"

Go to the source code of this file.

Data Structures

struct  PulseData


#define OFFSET(a)   offsetof(PulseData, a)


static av_cold int pulse_write_header (AVFormatContext *h)
static av_cold int pulse_write_trailer (AVFormatContext *h)
static int pulse_write_packet (AVFormatContext *h, AVPacket *pkt)
static void pulse_get_output_timestamp (AVFormatContext *h, int stream, int64_t *dts, int64_t *wall)


static const AVOption options []
static const AVClass pulse_muxer_class
AVOutputFormat ff_pulse_muxer

Macro Definition Documentation

#define OFFSET (   a)    offsetof(PulseData, a)

Definition at line 137 of file pulse_audio_enc.c.

Definition at line 138 of file pulse_audio_enc.c.

Function Documentation

static av_cold int pulse_write_header ( AVFormatContext h)

Definition at line 40 of file pulse_audio_enc.c.

static av_cold int pulse_write_trailer ( AVFormatContext h)

Definition at line 86 of file pulse_audio_enc.c.

static int pulse_write_packet ( AVFormatContext h,
AVPacket pkt 

Definition at line 95 of file pulse_audio_enc.c.

static void pulse_get_output_timestamp ( AVFormatContext h,
int  stream,
int64_t *  dts,
int64_t *  wall 

Definition at line 129 of file pulse_audio_enc.c.

Variable Documentation

const AVOption options[]
Initial value:
= {
{ "server", "set PulseAudio server", OFFSET(server), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0, E },
{ "name", "set application name", OFFSET(name), AV_OPT_TYPE_STRING, {.str = LIBAVFORMAT_IDENT}, 0, 0, E },
{ "stream_name", "set stream description", OFFSET(stream_name), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0, E },
{ "device", "set device name", OFFSET(device), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0, E },
{ NULL }

Definition at line 140 of file pulse_audio_enc.c.

const AVClass pulse_muxer_class
Initial value:
= {
.class_name = "Pulse muxer",
.item_name = av_default_item_name,
.option = options,

Definition at line 148 of file pulse_audio_enc.c.

AVOutputFormat ff_pulse_muxer
Initial value:
= {
.name = "pulse",
.long_name = NULL_IF_CONFIG_SMALL("Pulse audio output"),
.priv_data_size = sizeof(PulseData),
.video_codec = AV_CODEC_ID_NONE,
.write_header = pulse_write_header,
.write_packet = pulse_write_packet,
.write_trailer = pulse_write_trailer,
.get_output_timestamp = pulse_get_output_timestamp,
.priv_class = &pulse_muxer_class,

Definition at line 155 of file pulse_audio_enc.c.