Audacity 3.2.0
AVFifoBufferWrapper.cpp
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 AVFifoBufferWrapper.cpp
6
7 Dmitry Vedenko
8
9**********************************************************************/
10
11#include "AVFifoBufferWrapper.h"
12
13#include "FFmpegFunctions.h"
14
15
17 const FFmpegFunctions& ffmpeg, int size) noexcept
18 : mFFmpeg(ffmpeg)
19{
20 mAVFifoBuffer = mFFmpeg.av_fifo_alloc(size);
21}
22
24{
25 return mAVFifoBuffer;
26}
27
29{
30 return mAVFifoBuffer;
31}
32
34{
36}
const FFmpegFunctions & mFFmpeg
AVFifoBufferWrapper(const AVFifoBufferWrapper &)=delete
AVFifoBuffer * GetWrappedValue() noexcept
AVFifoBuffer * mAVFifoBuffer
void(* av_fifo_free)(AVFifoBuffer *f)