Go to the documentation of this file.
11 #include <sys/ioctl.h>
21 #define CHANNELS_MIN 1
22 #define CHANNELS_MAX 8
39 LOG(VB_GENERAL, LOG_INFO,
"Opening NULL audio device, will fail.");
57 while (
int rate = settings->GetNextRate())
59 settings->AddSupportedRate(rate);
65 settings->AddSupportedFormat(fmt);
70 settings->AddSupportedChannels(channels);
73 settings->setPassthrough(-1);
85 LOG(VB_GENERAL, LOG_ERR,
"null audio output should not have just "
86 "had data written to it");
97 size_t amount_to_read = max_length;
111 return amount_to_read;
void Reset(void) override
Reset the audiobuffer, timecode and mythmusic visualisation.
QMutex m_pcmOutputBufferMutex
void CloseDevice(void) override
AudioOutputNULL(const AudioSettings &settings)
long long copy(QFile &dst, QFile &src, uint block_size)
Copies src file to dst file.
bool m_bufferOutputDataForUse
void WriteAudio(unsigned char *aubuf, int size) override
void Reset(void) override
Reset the audiobuffer, timecode and mythmusic visualisation.
void KillAudio(void)
Kill the output thread and cleanup.
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
bool OpenDevice(void) override
long m_soundcardBufferSize
bool m_init
If set to false, AudioOutput instance will not try to initially open the audio device.
void Reconfigure(const AudioSettings &settings) override
(Re)Configure AudioOutputBase
std::vector< unsigned char > m_pcmOutputBuffer
AudioOutputSettings * GetOutputSettings(bool digital) override
void InitSettings(const AudioSettings &settings)
int readOutputData(unsigned char *read_buffer, size_t max_length) override
#define NULLAUDIO_OUTPUT_BUFFER_SIZE
int GetBufferedOnSoundcard(void) const override
Return the size in bytes of frames currently in the audio buffer adjusted with the audio playback lat...
~AudioOutputNULL() override