30 #ifndef AVDEVICE_ALSA_AUDIO_H
31 #define AVDEVICE_ALSA_AUDIO_H
33 #include <alsa/asoundlib.h>
41 #define DEFAULT_CODEC_ID AV_NE(CODEC_ID_PCM_S16BE, CODEC_ID_PCM_S16LE)
43 #define ALSA_BUFFER_SIZE_MAX 32768
52 void (*reorder_func)(
const void *,
void *, int);
72 unsigned int *sample_rate,
int ff_alsa_xrun_recover(AVFormatContext *s1, int err)
Try to recover from ALSA buffer underrun.
int ff_alsa_extend_reorder_buf(AlsaData *s, int size)
int channels
number of channels set by user
static void(WINAPI *cond_broadcast)(pthread_cond_t *cond)
Describe the class of an AVClass context structure.
int ff_alsa_close(AVFormatContext *s1)
Close the ALSA PCM.
int ff_alsa_open(AVFormatContext *s, snd_pcm_stream_t mode, unsigned int *sample_rate, int channels, enum CodecID *codec_id)
Open an ALSA PCM.
int period_size
bytes per sample * channels
CodecID
Identify the syntax and semantics of the bitstream.
int frame_size
preferred size for reads and writes
int sample_rate
sample rate set by user
int reorder_buf_size
in frames