The
QAudioRecorder Class[
^] provides the
audioInputs()
function returning a list of available names. If you don't want a list box to select from these but use hard coded names, just print the list once to know the names that can be used on your system.
There is also the function
audioInputDescription()
which provides user friendly names of the passed device name to help deciding which device should be used.