Qt 6.12 LTS is out! See what's new in the release
blog
Qt 5.14.2 How can I display video via QSoundEffect in ARM embedded linux via ALSA
-
Hi,I'm trying to display a warning sound in my qt programm. The code likes
QSoundEffect messageWarningEffect; messageWarningEffect.setSource(QUrl("qrc:/Resources/Msg/danger.wav")); messageWarningEffect.play();It works well in Ubuntu, but when I put it in my embedded board, it print
PulseAudioService: pa_context_connect() failed PulseAudioService: pa_context_connect() failed PulseAudioService: pa_context_connect() failed PulseAudioService: pa_context_connect() failed PulseAudioService: pa_context_connect() failed PulseAudioService: pa_context_connect() failedand i search noting in my board about
PulseAduio, I also can't modify it's hardware.Now, I can display in command by
aplay, that's means my board has ALSA support. So I wonder how can I use QSoundEffect by ALSA.