5#include "JS8_Audio/AudioDevice.h"
12#include <QScopedPointer>
16class SoundInput :
public QObject {
20 SoundInput(QObject *parent =
nullptr) : QObject{parent}, m_sink{
nullptr} {}
26 Q_SLOT
void start(QAudioDevice
const &,
int framesPerBuffer,
28 AudioDevice::Channel = AudioDevice::Mono);
33 Q_SIGNAL
void error(QString message)
const;
34 Q_SIGNAL
void status(QString message)
const;
38 Q_SLOT
void handleStateChanged(QAudio::State)
const;
40 bool audioError()
const;
42 QScopedPointer<QAudioSource> m_stream;
43 QPointer<AudioDevice> m_sink;
Definition AudioDevice.h:11