Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to switch between available audio devices
sergex last edited by
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.
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.