FFmpeg
|
#include <math.h>
#include <pulse/pulseaudio.h>
#include <pulse/error.h>
#include "libavformat/avformat.h"
#include "libavformat/internal.h"
#include "libavformat/mux.h"
#include "libavformat/version.h"
#include "libavutil/channel_layout.h"
#include "libavutil/internal.h"
#include "libavutil/opt.h"
#include "libavutil/time.h"
#include "libavutil/log.h"
#include "libavutil/attributes.h"
#include "pulse_audio_common.h"
Go to the source code of this file.
Data Structures | |
struct | PulseData |
Macros | |
#define | OFFSET(a) offsetof(PulseData, a) |
#define | E AV_OPT_FLAG_ENCODING_PARAM |
Functions | |
static void | pulse_audio_sink_device_cb (pa_context *ctx, const pa_sink_info *dev, int eol, void *userdata) |
static int | pulse_update_sink_info (AVFormatContext *h) |
static void | pulse_audio_sink_input_cb (pa_context *ctx, const pa_sink_input_info *i, int eol, void *userdata) |
static int | pulse_update_sink_input_info (AVFormatContext *h) |
static void | pulse_event (pa_context *ctx, pa_subscription_event_type_t t, uint32_t idx, void *userdata) |
static void | pulse_stream_writable (pa_stream *stream, size_t nbytes, void *userdata) |
static void | pulse_overflow (pa_stream *stream, void *userdata) |
static void | pulse_underflow (pa_stream *stream, void *userdata) |
static void | pulse_stream_state (pa_stream *stream, void *userdata) |
static int | pulse_stream_wait (PulseData *s) |
static void | pulse_context_state (pa_context *ctx, void *userdata) |
static int | pulse_context_wait (PulseData *s) |
static void | pulse_stream_result (pa_stream *stream, int success, void *userdata) |
static int | pulse_finish_stream_operation (PulseData *s, pa_operation *op, const char *name) |
static int | pulse_set_pause (PulseData *s, int pause) |
static int | pulse_flash_stream (PulseData *s) |
static void | pulse_context_result (pa_context *ctx, int success, void *userdata) |
static int | pulse_finish_context_operation (PulseData *s, pa_operation *op, const char *name) |
static int | pulse_set_mute (PulseData *s) |
static int | pulse_set_volume (PulseData *s, double volume) |
static int | pulse_subscribe_events (PulseData *s) |
static void | pulse_map_channels_to_pulse (const AVChannelLayout *channel_layout, pa_channel_map *channel_map) |
static av_cold int | pulse_write_trailer (AVFormatContext *h) |
static av_cold int | pulse_write_header (AVFormatContext *h) |
static int | pulse_write_packet (AVFormatContext *h, AVPacket *pkt) |
static int | pulse_write_frame (AVFormatContext *h, int stream_index, AVFrame **frame, unsigned flags) |
static void | pulse_get_output_timestamp (AVFormatContext *h, int stream, int64_t *dts, int64_t *wall) |
static int | pulse_get_device_list (AVFormatContext *h, AVDeviceInfoList *device_list) |
static int | pulse_control_message (AVFormatContext *h, int type, void *data, size_t data_size) |
Variables | |
static const AVOption | options [] |
static const AVClass | pulse_muxer_class |
const AVOutputFormat | ff_pulse_muxer |
Definition at line 762 of file pulse_audio_enc.c.
#define E AV_OPT_FLAG_ENCODING_PARAM |
Definition at line 763 of file pulse_audio_enc.c.
|
static |
Definition at line 57 of file pulse_audio_enc.c.
Referenced by pulse_update_sink_info().
|
static |
Definition at line 77 of file pulse_audio_enc.c.
Referenced by pulse_write_header().
|
static |
Definition at line 92 of file pulse_audio_enc.c.
Referenced by pulse_update_sink_input_info().
|
static |
Definition at line 120 of file pulse_audio_enc.c.
Referenced by pulse_control_message(), pulse_event(), and pulse_write_header().
|
static |
Definition at line 153 of file pulse_audio_enc.c.
Referenced by pulse_write_header().
|
static |
Definition at line 169 of file pulse_audio_enc.c.
Referenced by pulse_write_header().
|
static |
Definition at line 182 of file pulse_audio_enc.c.
Referenced by pulse_write_header().
|
static |
Definition at line 188 of file pulse_audio_enc.c.
Referenced by pulse_write_header().
|
static |
Definition at line 194 of file pulse_audio_enc.c.
Referenced by pulse_write_header().
Definition at line 211 of file pulse_audio_enc.c.
Referenced by pulse_write_header().
|
static |
Definition at line 223 of file pulse_audio_enc.c.
Referenced by pulse_write_header().
Definition at line 240 of file pulse_audio_enc.c.
Referenced by pulse_write_header().
|
static |
Definition at line 252 of file pulse_audio_enc.c.
Referenced by pulse_flash_stream(), and pulse_set_pause().
|
static |
Definition at line 263 of file pulse_audio_enc.c.
Referenced by pulse_flash_stream(), and pulse_set_pause().
Definition at line 280 of file pulse_audio_enc.c.
Referenced by pulse_control_message().
Definition at line 288 of file pulse_audio_enc.c.
Referenced by pulse_write_packet().
|
static |
Definition at line 296 of file pulse_audio_enc.c.
Referenced by pulse_set_mute(), pulse_set_volume(), and pulse_subscribe_events().
|
static |
Definition at line 307 of file pulse_audio_enc.c.
Referenced by pulse_set_mute(), pulse_set_volume(), and pulse_subscribe_events().
Definition at line 324 of file pulse_audio_enc.c.
Referenced by pulse_control_message().
Definition at line 333 of file pulse_audio_enc.c.
Referenced by pulse_control_message().
Definition at line 349 of file pulse_audio_enc.c.
Referenced by pulse_write_header().
|
static |
Definition at line 358 of file pulse_audio_enc.c.
Referenced by pulse_write_header().
|
static |
Definition at line 413 of file pulse_audio_enc.c.
Referenced by pulse_write_header().
|
static |
Definition at line 444 of file pulse_audio_enc.c.
|
static |
Definition at line 627 of file pulse_audio_enc.c.
Referenced by pulse_write_frame().
|
static |
Definition at line 676 of file pulse_audio_enc.c.
|
static |
Definition at line 694 of file pulse_audio_enc.c.
|
static |
Definition at line 708 of file pulse_audio_enc.c.
|
static |
Definition at line 714 of file pulse_audio_enc.c.
|
static |
Definition at line 764 of file pulse_audio_enc.c.
|
static |
Definition at line 776 of file pulse_audio_enc.c.
const AVOutputFormat ff_pulse_muxer |
Definition at line 784 of file pulse_audio_enc.c.