QT6 QAudioSource and ASIO drivers?
Solved
General and Desktop
-
Hi,
I wonder if QT6 has the ability to use ASIO audio drivers for the QAudioSource/QAudioFormat.
When I check for audio devices with QAudioDevice, it returns only the peripherals that I can see with Windows Sound.
The problem is that there's a lot of latency between input and output.
I know that it is possible with the RTAudio library to do such thing (I've done it before).
Is it possible with QT6?The way I implement direct I/O is as follows, maybe I'm wrong for doing so :
QMediaDevices* devices = new QMediaDevices(); QAudioFormat format = devices->defaultAudioInput().preferredFormat(); format.setChannelCount(1); QAudioSource* audioSource = new QAudioSource(devices->defaultAudioInput(), format); QAudioSink* audioSink = new QAudioSink(devices->defaultAudioOutput(), format); audioSink->start(audioSource->start());