#include <alsa/asoundlib.h>
#include "libavformat/internal.h"
#include "avdevice.h"
#include "alsa-audio.h"
Go to the source code of this file.
Functions | |
static av_cold int | audio_write_header (AVFormatContext *s1) |
static int | audio_write_packet (AVFormatContext *s1, AVPacket *pkt) |
static void | audio_get_output_timestamp (AVFormatContext *s1, int stream, int64_t *dts, int64_t *wall) |
Variables | |
AVOutputFormat | ff_alsa_muxer |
This avdevice encoder allows to play audio to an ALSA (Advanced Linux Sound Architecture) device.
The filename parameter is the name of an ALSA PCM device capable of capture, for example "default" or "plughw:1"; see the ALSA documentation for naming conventions. The empty string is equivalent to "default".
The playback period is set to the lower value available for the device, which gives a low latency suitable for real-time playback.
Definition in file alsa-audio-enc.c.
static void audio_get_output_timestamp | ( | AVFormatContext * | s1, | |
int | stream, | |||
int64_t * | dts, | |||
int64_t * | wall | |||
) | [static] |
Definition at line 107 of file alsa-audio-enc.c.
static av_cold int audio_write_header | ( | AVFormatContext * | s1 | ) | [static] |
Definition at line 46 of file alsa-audio-enc.c.
static int audio_write_packet | ( | AVFormatContext * | s1, | |
AVPacket * | pkt | |||
) | [static] |
Definition at line 74 of file alsa-audio-enc.c.
Initial value:
{ .name = "alsa", .long_name = NULL_IF_CONFIG_SMALL("ALSA audio output"), .priv_data_size = sizeof(AlsaData), .audio_codec = DEFAULT_CODEC_ID, .video_codec = CODEC_ID_NONE, .write_header = audio_write_header, .write_packet = audio_write_packet, .write_trailer = ff_alsa_close, .get_output_timestamp = audio_get_output_timestamp, .flags = AVFMT_NOFILE, }
Definition at line 117 of file alsa-audio-enc.c.