Go to the documentation of this file.
7 #define AUDBUFSIZE 512000
20 static QMap<QString, QString> *
GetDevices(
const char *
type =
nullptr);
26 unsigned long long timestamp);
33 static void Debug(
const QString& msg)
34 {
LOG(VB_AUDIO, LOG_INFO,
"AudioOutputCA::" + msg); }
36 static void Error(
const QString& msg)
37 {
LOG(VB_GENERAL, LOG_ERR,
"AudioOutputCA Error: " + msg); }
39 static void Warn(
const QString& msg)
40 {
LOG(VB_GENERAL, LOG_WARNING,
"AudioOutputCA Warning: " + msg); }
47 void WriteAudio(
unsigned char *aubuf,
int size)
override;
bool OpenDevice(void) override
int GetBufferedOnSoundcard(void) const override
Return the size in bytes of frames currently in the audio buffer adjusted with the audio playback lat...
bool StartOutputThread(void) override
bool RenderAudio(unsigned char *aubuf, int size, unsigned long long timestamp)
Object-oriented part of callback.
AudioOutputSettings * GetOutputSettings(bool digital) override
This holds Core Audio member variables and low-level audio IO methods The name is now a misnomer,...
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
std::chrono::milliseconds GetAudiotime(void) override
Reimplement the base class's version of GetAudiotime() so that we don't use gettimeofday or Qt mutexe...
Implements Core Audio (Mac OS X Hardware Abstraction Layer) output.
static QMap< QString, QString > * GetDevices(const char *type=nullptr)
void CloseDevice(void) override
void WriteAudio(unsigned char *aubuf, int size) override
void StopOutputThread(void) override
static void Debug(const QString &msg)
AudioOutputCA(const AudioSettings &settings)
void SetVolumeChannel(int channel, int volume) override
int GetVolumeChannel(int channel) const override
static void Error(const QString &msg)
static void Warn(const QString &msg)