35 : pAudioBase(audiobase)
52 LOGSTATUS <<
"Destroying AudioDeviceGuard";
void setTimerInterval(const int msec, const int firstMsec=0)
Set timer interval for the periodically called worker.
void setModuleName(const QString &name)
Specify the name of the class-specific module.
void setPriority(const QThread::Priority p)
Set thread priority.
virtual void updateListOfDevices()=0
Update the list of devices, called by the DeviceGuard.
~AudioDeviceGuard()
Destructor: Stop the timer, stop the thread and exit.
void periodicallyCalledWorker() override final
Thread worker function, calling updateListOfDevices() of the audio object. This thread is executed at...
virtual bool start()
Start the thread.
void setThreadName(const QString name)
Set thread name (Linux only)
virtual bool stop()
Stop the thread.
AudioBase * pAudioBase
Pointer back to the audio object.
AudioDeviceGuard(AudioBase *output=nullptr)
Construtor of the AudioDeviceGuard.
bool startMonitoring(int seconds=20)
Start the AudioDeviceGuard.
Abstract base class for audio input and output.