diff options
Diffstat (limited to 'libavutil/audio_fifo.h')
-rw-r--r-- | libavutil/audio_fifo.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libavutil/audio_fifo.h b/libavutil/audio_fifo.h index 24f91dab72..d8a9194a8d 100644 --- a/libavutil/audio_fifo.h +++ b/libavutil/audio_fifo.h @@ -111,6 +111,23 @@ int av_audio_fifo_write(AVAudioFifo *af, void **data, int nb_samples); int av_audio_fifo_peek(AVAudioFifo *af, void **data, int nb_samples); /** + * Peek data from an AVAudioFifo. + * + * @see enum AVSampleFormat + * The documentation for AVSampleFormat describes the data layout. + * + * @param af AVAudioFifo to read from + * @param data audio data plane pointers + * @param nb_samples number of samples to peek + * @param offset offset from current read position + * @return number of samples actually peek, or negative AVERROR code + * on failure. The number of samples actually peek will not + * be greater than nb_samples, and will only be less than + * nb_samples if av_audio_fifo_size is less than nb_samples. + */ +int av_audio_fifo_peek_at(AVAudioFifo *af, void **data, int nb_samples, int offset); + +/** * Read data from an AVAudioFifo. * * @see enum AVSampleFormat |