Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QT6 QAudioSource and ASIO drivers?

QT6 QAudioSource and ASIO drivers?

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 642 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MStackoverflow
    wrote on last edited by MStackoverflow
    #1

    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());
    
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      QtMultimedia uses the system multimedia framework. For something more specialised, you will have to use something like PortAudio which is pretty easy to integrate with Qt itself.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved