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 65536
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.
int64_t timestamp
current timestamp, without latency applied.
Opaque type representing a time filter state.
void(* reorder_func)(const void *, void *, int)
int ff_alsa_get_device_list(AVDeviceInfoList *device_list, snd_pcm_stream_t stream_type)
Main libavdevice API header.
AVCodecID
Identify the syntax and semantics of the bitstream.
int ff_alsa_extend_reorder_buf(AlsaData *s, int size)
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
int ff_alsa_xrun_recover(AVFormatContext *s1, int err)
Try to recover from ALSA buffer underrun.
int frame_size
bytes per sample * channels
int sample_rate
sample rate set by user
int reorder_buf_size
in frames