Definition: audiocontext.h:35
bool isOpen() const
Definition: audiocontext.h:60
void write(const std::vector< AudioSample > &monoData)
void write(const std::vector< StereoSample > &stereoData)
float * _buffer
Definition: audiocontext.h:45
AVFormatContext * _muxCtx
Definition: audiocontext.h:41
AVStream * _avStream
Definition: audiocontext.h:40
int create(const std::string &filename, const std::string &format, int nChannels, int sampleRate, int bitrate)
int _inputBufSize
Definition: audiocontext.h:44
std::string _filename
Definition: audiocontext.h:38
void encodePacket(int size)
~AudioContext()
Definition: audiocontext.h:56
uint8_t * _buffer_test
Definition: audiocontext.h:46
struct SwrContext * _convertCtxAv
Definition: audiocontext.h:48
int16_t scale(Real value)
AVCodecContext * _codecCtx
Definition: audiocontext.h:42
bool _isOpen
Definition: audiocontext.h:37