diff options
author | Paul B Mahol <onemda@gmail.com> | 2015-08-04 15:41:35 +0300 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2015-08-19 19:15:13 +0300 |
commit | 2fa019958b4f8d1412f0e021c0c0aa0645ec6c7a (patch) | |
tree | f17f742e8043dfde6d6f39b066ac0bcac4e8920b /libavutil/audio_fifo.h | |
parent | e6b8797b827ce3c5eb0608725db7e7e85d78864b (diff) |
avfilter: add showfreqs filter
Diffstat (limited to 'libavutil/audio_fifo.h')
-rw-r--r-- | libavutil/audio_fifo.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libavutil/audio_fifo.h b/libavutil/audio_fifo.h index d21e6a1318..d93be2aeb0 100644 --- a/libavutil/audio_fifo.h +++ b/libavutil/audio_fifo.h @@ -94,6 +94,22 @@ int av_audio_fifo_realloc(AVAudioFifo *af, int nb_samples); int av_audio_fifo_write(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 + * @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(AVAudioFifo *af, void **data, int nb_samples); + +/** * Read data from an AVAudioFifo. * * @see enum AVSampleFormat |