Important: Please read the Qt Code of Conduct -

Distinguish ALSA and Pulseaudio devices with QAudioDeviceInfo

  • I'm porting an older Qt4 Application, i have written a few years ago to Qt5. As phonon was dropped, i want to use QtMultimedia.

    I have two notification/alert sounds that should be played on a user definde audio device.

    QAudioDeviceInfo::availableDevices(QAudio::AudioOutput) gives me a full list of all found devices


    A common user does not know which device is ALSA and wich is Pulseaudio, and will get really confused about the choices for audio output.

    Is there any way to

    • disable ALSA or Pulseaudio from the code
    • check if a device is alsa or pulseaudio

Log in to reply