23 #include "../core/system/log.h"
38 mQtAudioManager(nullptr)
86 std::this_thread::sleep_for(std::chrono::milliseconds(10));
112 LogE(
"Error in QtAudioManager: %s", s.toStdString().c_str());
AudioPlayerForQt(QObject *parent)
Constructor, starting a Qt-thread.
void errorString(QString)
Class for the audio player thread.
void start() overridefinal
Start/restart the audio device.
void exit() overridefinal
Exit from the AudioPlayerForQt.
void init() overridefinal
Initialize the AudioPlayerForQt.
virtual void exit() override
Destroy the audio device.
void stop() overridefinal
Stop the audio device.
void setDeviceName(const std::string &n)
Set the device name.
void registerForTermination()
AudioPlayerThreadForQt * mQtAudioManager
virtual void setSamplingRate(int rate)
Allow the implementation to change the sampling rate during operation.
static SettingsForQt & getSingleton()
Getter function for the singleton.
void setPause(bool pause)
Pause the audio player.