96QAudioSource::QAudioSource(
const QAudioDevice &audioDevice,
const QAudioFormat &format, QObject *parent):
99 d = QPlatformMediaIntegration::instance()->mediaDevices()->audioInputDevice(format, audioDevice, parent);
101 connect(d, &QPlatformAudioSource::stateChanged,
this, [
this](QAudio::State state) {
104 if (state == d->state())
105 emit stateChanged(state);
109 qWarning() << (
"No audio device detected");