Nominate our 2022 Qt Champions!

How to switch between available audio devices

  • Hello,

    Is there a way to switch between Audio devices such as sound cards or usb headsets using Qt ? I was able to get a list of the available devices used in my system which I would like to display in a menu for the user to choose from. It would be ideally possible to choose both the input device and the output device wanted. right now I am using the QAudioInput and QAudioOutput classes.

    I appreciate any help, tips or suggestions. Thank you.

  • Lifetime Qt Champion


    Yes you can, you'll have to re-do the setup between the input and the new output like shown in the doc from QAudioInput/Ouput when you want to change either.

Log in to reply