30 #ifndef AVDEVICE_ALSA_H
31 #define AVDEVICE_ALSA_H
33 #include <alsa/asoundlib.h>
42 #define DEFAULT_CODEC_ID AV_NE(AV_CODEC_ID_PCM_S16BE, AV_CODEC_ID_PCM_S16LE)
46 #define ALSA_BUFFER_SIZE_MAX 131072
int64_t timestamp
current timestamp, without latency applied.
Opaque type representing a time filter state.
void(* reorder_func)(const void *, void *, int)
Main libavdevice API header.
av_warn_unused_result int ff_alsa_open(AVFormatContext *s, snd_pcm_stream_t mode, unsigned int *sample_rate, int channels, enum AVCodecID *codec_id)
Open an ALSA PCM.
AVCodecID
Identify the syntax and semantics of the bitstream.
av_warn_unused_result int ff_alsa_extend_reorder_buf(AlsaData *s, int size)
av_warn_unused_result int ff_alsa_get_device_list(AVDeviceInfoList *device_list, snd_pcm_stream_t stream_type)
av_warn_unused_result int ff_alsa_xrun_recover(AVFormatContext *s1, int err)
Try to recover from ALSA buffer underrun.
typedef void(APIENTRY *FF_PFNGLACTIVETEXTUREPROC)(GLenum texture)
void(* ff_reorder_func)(const void *, void *, int)
int channels
number of channels set by user
int ff_alsa_close(AVFormatContext *s1)
Close the ALSA PCM.
Describe the class of an AVClass context structure.
int period_size
preferred size for reads and writes, in frames
#define av_warn_unused_result
int frame_size
bytes per sample * channels
int sample_rate
sample rate set by user
int reorder_buf_size
in frames
mode
Use these values in ebur128_init (or'ed).