Go to the documentation of this file. 1 #ifndef AUDIOREENCODEBUFFER_H
2 #define AUDIOREENCODEBUFFER_H
5 #include "libmythbase/mythconfig.h"
16 void appendData(
unsigned char *buffer,
int len,
int frames, std::chrono::milliseconds time);
24 std::chrono::milliseconds
m_time {-1ms};
40 void Reset(
void)
override;
41 bool AddFrames(
void *buffer,
int frames, std::chrono::milliseconds timecode)
override;
42 bool AddData(
void *buffer,
int len, std::chrono::milliseconds timecode,
45 long long GetSamples(std::chrono::milliseconds time);
46 void SetTimecode(std::chrono::milliseconds timecode)
override;
47 bool IsPaused(
void)
const override {
return false; }
48 void Pause(
bool paused)
override { (void)paused; }
69 size_t )
override {
return 0; }
void appendData(unsigned char *buffer, int len, int frames, std::chrono::milliseconds time)
~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)
void SetCurrentVolume(int) override
void bufferOutputData(bool) override
void SetVolumeChannel(int, int) override
std::chrono::milliseconds m_time
MuteState GetMuteState(void) const override
void Reconfigure(const AudioSettings &settings) override
reconfigure sound out for new params
AudioBuffer * GetData(std::chrono::milliseconds time)
AudioBuffer * m_saveBuffer
void SetEffDsp(int dsprate) override
std::chrono::milliseconds GetAudiotime(void) override
void ToggleMute(void) override
int readOutputData(unsigned char *, size_t) override
void AdjustCurrentVolume(int) override
void Reset(void) override
void PauseUntilBuffered(void) override
bool AddData(void *buffer, int len, std::chrono::milliseconds timecode, int frames) override
Add data to the audiobuffer for playback.
void Drain(void) override
bool CanPassthrough(int, int, AVCodecID, int) const override
void Pause(bool paused) override
static constexpr size_t ABLOCK_SIZE
void SetTimecode(std::chrono::milliseconds timecode) override
void SetSWVolume(int, bool) override
QList< AudioBuffer * > m_bufferList
int GetSWVolume(void) override
std::chrono::milliseconds m_last_audiotime
int GetVolumeChannel(int) const override
virtual void SetMute(bool)
bool IsPaused(void) const override
uint GetCurrentVolume(void) const override
bool AddFrames(void *buffer, int frames, std::chrono::milliseconds timecode) override
Add frames to the audiobuffer for playback.
long long GetSamples(std::chrono::milliseconds time)
virtual MuteState IterateMutedChannels(void)