![]() |
SoDaRadio-12.2.0-cut_dependencies:6c82803
|
Generates a 440 Hz sine wave and plays it through an audio output device. More...
#include <CLIAudio.hxx>
Public Member Functions | |
| AudioToneThread (const QAudioDevice &dev, QObject *parent=nullptr) | |
| ~AudioToneThread () | |
| void | stopAudio () |
| Stop the thread cleanly. | |
Protected Member Functions | |
| void | run () override |
Private Attributes | |
| QAudioDevice | device |
| std::atomic< bool > | stop_flag |
Generates a 440 Hz sine wave and plays it through an audio output device.
Used to verify that audio output is working independently of SoDaServer. Call start() to begin playback; call stopAudio() to stop. Volume is fixed at 0.2 (20 % full scale).
Definition at line 193 of file CLIAudio.hxx.
|
explicit |
| dev | Audio output device. |
| parent | Optional Qt parent. |
| SoDaCLI::AudioToneThread::~AudioToneThread | ( | ) |
|
overrideprotected |
| void SoDaCLI::AudioToneThread::stopAudio | ( | ) |
Stop the thread cleanly.
|
private |
Definition at line 211 of file CLIAudio.hxx.
|
private |
Definition at line 212 of file CLIAudio.hxx.