Important: Please read the Qt Code of Conduct -

qtmultimedia with alsa. A lot of problems.

  • I built Qt with the -no-pulseaudio option. That is, as I understand it, now qtmultimedia should use alsa as a backend and pulseaudio is no longer needed. But when I run my application that uses the qml SoundEffect object, strange things come up:

    1. If pulseaudio is not installed in the system or if it is installed, but autospawn is disabled for the client, then when I call the play () slot, there is no sound and in the console I see the following message:
      ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

    What does it mean? To work with alsa directly, pulseaudio is not needed. For this, I built Qt with the -no-pulseaudio option!

    1. If I enable autospawn for pulseaudio, there is sound, but when I call play (), I see the following messages in the console:
      ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occured

    2. And more. Very strange and unpleasant effect. When a SoundEffect is created dynamically, gui freezes for a while. And this happens even if I use incubateObject instead of createObject.

Log in to reply