Go to the documentation of this file. 1 #ifndef AUDIOREENCODEBUFFER_H
2 #define AUDIOREENCODEBUFFER_H
4 #include "mythconfig.h"
7 #define ABLOCK_SIZE 8192
16 void appendData(
unsigned char *buffer,
int len,
int frames,
long long time);
40 void Reset(
void)
override;
41 bool AddFrames(
void *buffer,
int frames, int64_t timecode)
override;
42 bool AddData(
void *buffer,
int len, int64_t timecode,
47 bool IsPaused(
void)
const override {
return false; }
48 void Pause(
bool paused)
override { (void)paused; }
69 size_t )
override {
return 0; }
~AudioReencodeBuffer() override
This class is to act as a fake audio output device to store the data for reencoding.
AudioReencodeBuffer(AudioFormat audio_format, int audio_channels, bool passthru)
long long m_last_audiotime
void SetCurrentVolume(int) override
void bufferOutputData(bool) override
void SetVolumeChannel(int, int) override
long long GetSamples(long long time)
bool AddData(void *buffer, int len, int64_t timecode, int frames) override
Add data to the audiobuffer for playback.
MuteState GetMuteState(void) const override
void Reconfigure(const AudioSettings &settings) override
reconfigure sound out for new params
AudioBuffer * m_saveBuffer
void SetEffDsp(int dsprate) override
void ToggleMute(void) override
int readOutputData(unsigned char *, size_t) override
int64_t GetAudiotime(void) override
void AdjustCurrentVolume(int) override
void Reset(void) override
void SetTimecode(int64_t timecode) override
void PauseUntilBuffered(void) override
void Drain(void) override
bool CanPassthrough(int, int, AVCodecID, int) const override
void Pause(bool paused) override
void appendData(unsigned char *buffer, int len, int frames, long long time)
AudioBuffer * GetData(long long time)
void SetSWVolume(int, bool) override
QList< AudioBuffer * > m_bufferList
int GetSWVolume(void) override
int GetVolumeChannel(int) const override
bool AddFrames(void *buffer, int frames, int64_t timecode) override
Add frames to the audiobuffer for playback.
virtual void SetMute(bool)
bool IsPaused(void) const override
uint GetCurrentVolume(void) const override
virtual MuteState IterateMutedChannels(void)