Go to the documentation of this file. 1 #ifndef AUDIOOUTPUTREENCODER
2 #define AUDIOOUTPUTREENCODER
5 #include "libavcodec/avcodec.h"
21 bool Init(AVCodecID codec_id,
int bitrate,
int samplerate,
int channels);
31 static void *
realloc(
void *ptr,
size_t old_size,
size_t new_size);
~AudioOutputDigitalEncoder()
bool Init(AVCodecID codec_id, int bitrate, int samplerate, int channels)
int GetFrames(void *ptr, int maxlen)
static void * realloc(void *ptr, size_t old_size, size_t new_size)
static constexpr ssize_t OUTBUFSIZE
SPDIFEncoder * m_spdifEnc
int Encode(void *input, int len, AudioFormat format)
static constexpr ssize_t INBUFSIZE
AVCodecContext * m_avContext
AudioOutputDigitalEncoder(void)