FFmpeg
4.0
|
void av_audio_fifo_free | ( | AVAudioFifo * | af | ) |
Free an AVAudioFifo.
af | AVAudioFifo to free |
Definition at line 45 of file audio_fifo.c.
Referenced by av_audio_fifo_alloc(), avresample_close(), compressor(), config_output(), gate(), main(), opus_decode_close(), test_function(), and uninit().
AVAudioFifo* av_audio_fifo_alloc | ( | enum AVSampleFormat | sample_fmt, |
int | channels, | ||
int | nb_samples | ||
) |
Allocate an AVAudioFifo.
sample_fmt | sample format |
channels | number of channels |
nb_samples | initial allocation size, in samples |
Definition at line 59 of file audio_fifo.c.
Referenced by avresample_open(), compressor(), config_input(), config_output(), config_props_output(), gate(), init_fifo(), opus_decode_init(), and test_function().
av_warn_unused_result int av_audio_fifo_realloc | ( | AVAudioFifo * | af, |
int | nb_samples | ||
) |
Reallocate an AVAudioFifo.
af | AVAudioFifo to reallocate |
nb_samples | new allocation size, in samples |
Definition at line 96 of file audio_fifo.c.
Referenced by add_samples_to_fifo(), av_audio_fifo_write(), and filter_frame().
int av_audio_fifo_write | ( | AVAudioFifo * | af, |
void ** | data, | ||
int | nb_samples | ||
) |
Write data to an AVAudioFifo.
The AVAudioFifo will be reallocated automatically if the available space is less than nb_samples.
af | AVAudioFifo to write to |
data | audio data plane pointers |
nb_samples | number of samples to write |
Definition at line 112 of file audio_fifo.c.
Referenced by activate(), add_samples_to_fifo(), compressor(), ff_audio_data_add_to_fifo(), filter_frame(), gate(), opus_decode_frame(), opus_decode_packet(), plot_spectrum_column(), read_ir(), request_frame(), and write_samples_to_audio_fifo().
int av_audio_fifo_peek | ( | AVAudioFifo * | af, |
void ** | data, | ||
int | nb_samples | ||
) |
Peek data from an AVAudioFifo.
af | AVAudioFifo to read from |
data | audio data plane pointers |
nb_samples | number of samples to peek |
Definition at line 138 of file audio_fifo.c.
Referenced by filter_frame(), fir_frame(), plot_spectrum_column(), and test_function().
int av_audio_fifo_peek_at | ( | AVAudioFifo * | af, |
void ** | data, | ||
int | nb_samples, | ||
int | offset | ||
) |
Peek data from an AVAudioFifo.
af | AVAudioFifo to read from |
data | audio data plane pointers |
nb_samples | number of samples to peek |
offset | offset from current read position |
Definition at line 157 of file audio_fifo.c.
Referenced by test_function().
int av_audio_fifo_read | ( | AVAudioFifo * | af, |
void ** | data, | ||
int | nb_samples | ||
) |
Read data from an AVAudioFifo.
af | AVAudioFifo to read from |
data | audio data plane pointers |
nb_samples | number of samples to read |
Definition at line 181 of file audio_fifo.c.
Referenced by avresample_read(), compressor(), convert_coeffs(), ff_audio_data_read_from_fifo(), gate(), headphone_frame(), load_encode_and_write(), opus_decode_frame(), opus_decode_packet(), opus_flush_resample(), output_frame(), push_samples(), and read_samples_from_audio_fifo().
int av_audio_fifo_drain | ( | AVAudioFifo * | af, |
int | nb_samples | ||
) |
Drain data from an AVAudioFifo.
Removes the data without reading it.
af | AVAudioFifo to drain |
nb_samples | number of samples to drain |
Definition at line 201 of file audio_fifo.c.
Referenced by avresample_read(), filter_frame(), fir_frame(), opus_decode_flush(), opus_decode_frame(), plot_spectrum_column(), request_frame(), and test_function().
void av_audio_fifo_reset | ( | AVAudioFifo * | af | ) |
Reset the AVAudioFifo buffer.
This empties all data in the buffer.
af | AVAudioFifo to reset |
Definition at line 218 of file audio_fifo.c.
int av_audio_fifo_size | ( | AVAudioFifo * | af | ) |
Get the current number of samples in the AVAudioFifo available for reading.
af | the AVAudioFifo to query |
Definition at line 228 of file audio_fifo.c.
Referenced by activate(), add_samples_to_fifo(), av_audio_fifo_write(), avresample_available(), avresample_convert(), compressor(), convert_coeffs(), filter_frame(), fir_frame(), gate(), handle_buffered_output(), load_encode_and_write(), main(), opus_decode_flush(), opus_decode_frame(), opus_decode_packet(), opus_flush_resample(), output_frame(), plot_spectrum_column(), push_samples(), read_ir(), request_frame(), request_samples(), and test_function().
int av_audio_fifo_space | ( | AVAudioFifo * | af | ) |
Get the current number of samples in the AVAudioFifo available for writing.
af | the AVAudioFifo to query |
Definition at line 233 of file audio_fifo.c.
Referenced by av_audio_fifo_write(), and filter_frame().