Essentia
2.1-beta6-dev
|
#include <audiocontext.h>
Public Member Functions | |
AudioContext () | |
~AudioContext () | |
int | create (const std::string &filename, const std::string &format, int nChannels, int sampleRate, int bitrate) |
void | open () |
bool | isOpen () const |
void | write (const std::vector< AudioSample > &monoData) |
void | write (const std::vector< StereoSample > &stereoData) |
void | close () |
Protected Member Functions | |
int16_t | scale (Real value) |
void | encodePacket (int size) |
void | writeEOF () |
Protected Attributes | |
bool | _isOpen |
std::string | _filename |
AVStream * | _avStream |
AVFormatContext * | _muxCtx |
AVCodecContext * | _codecCtx |
int | _inputBufSize |
float * | _buffer |
uint8_t * | _buffer_test |
struct SwrContext * | _convertCtxAv |
This is just a nice object-oriented wrapper around FFMPEG
AudioContext | ( | ) |
|
inline |
References AudioContext::close().
void close | ( | ) |
Referenced by AudioContext::~AudioContext().
int create | ( | const std::string & | filename, |
const std::string & | format, | ||
int | nChannels, | ||
int | sampleRate, | ||
int | bitrate | ||
) |
|
protected |
|
inline |
References AudioContext::_isOpen.
void open | ( | ) |
|
protected |
void write | ( | const std::vector< AudioSample > & | monoData | ) |
void write | ( | const std::vector< StereoSample > & | stereoData | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by AudioContext::isOpen().
|
protected |