qtmultimedia with alsa. A lot of problems.
Unsolved
Mobile and Embedded
-
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:
- 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!
-
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 -
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.
- 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: