Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt 5.14.2 How can I display video via QSoundEffect in ARM embedded linux via ALSA
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

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 597 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Aizzzz
    wrote on last edited by Aizzzz
    #1

    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() failed
    

    and 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.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt
    • Unsolved