Qt6 linux: no audio output via QAudioSink
Unsolved
General and Desktop
-
Hi, I am porting my app to Qt6 and struggling to make
QAudioSink
produce any sound.
I am on Ubuntu 24.04, using Qt 6.4.2After various checks I think the issue is in the default choice of the audio device.
Qt5's default is:
alsa_output.pci-0000_00_1b.0.analog-stereo
On Qt6 I can only get one of these
Built-in Audio Analog Stereo
Built-in Audio Digital Stereo (HDMI)
These are the real hardware devices which are already managed by alsa / pulse / pipewire, and cannot be used directly.
Qt5 plays a virtual alsa device which is mixed by the audio system.How do I do the same in Qt6? I've read about
QT_MEDIA_BACKEND=gstreamer
orffmpeg
but it makes no difference.Andrea
-
Hi,
How did you set that environment variable ?