19 #include <QtCore/QObject> 20 #include <QtCore/QTimer> 21 #include <QtMultimedia/QAudioOutput> 37 void play(
int freqHz,
int durationMs);
43 QAudioOutput *mOutput;
46 void initializeAudio();
48 static constexpr
int CHANNEL_COUNT = 1;
49 static constexpr
int SAMPLE_RATE = 16000;
50 static constexpr
int SAMPLE_SIZE = 16;
QIODevice that synthesize sine wave values.
Definition: audioSynthDevice.h:23
Tone player. Play tones.
Definition: tonePlayer.h:26
void stop()
Stop playing.
Definition: tonePlayer.cpp:81
Definition: trikCommunicator.h:27
void play(int freqHz, int durationMs)
Play sound.
Definition: tonePlayer.cpp:51
TonePlayer()
Constructor.
Definition: tonePlayer.cpp:21