Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Unable to play a wav file with Audio component
Forum Updated to NodeBB v4.3 + New Features

Unable to play a wav file with Audio component

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
qt5.5.1colibri-t20
35 Posts 4 Posters 19.7k Views 1 Watching
  • 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.
  • zyendZ Offline
    zyendZ Offline
    zyend
    wrote on last edited by
    #23

    What do you mean "install properly" ?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #24

      Are you sure that the plugin you modified was installed at the right location ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • zyendZ Offline
        zyendZ Offline
        zyend
        wrote on last edited by zyend
        #25

        Yes.

        It was installed under /usr/lib/qt5/plugins/audio

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #26

          On your target ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • zyendZ Offline
            zyendZ Offline
            zyend
            wrote on last edited by
            #27

            Yes, of course.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #28

              How big is your audio file ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • zyendZ Offline
                zyendZ Offline
                zyend
                wrote on last edited by
                #29

                ~11 MB.

                Would you test it ?

                I have recompiled QtMultimedia without ALSA support and with PULSEAUDIO only.

                In /usr/lib/qt5/plugins/audio I have only libqtmedia_pulse.so

                Same thing when I launch my app again. libqtmedia_pulse.so plugin is loaded , and I have the same output as the one above...

                It really seems that something is wrecked under...

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #30

                  I likely would (and already would have done it) but I don't have such a board at hand.

                  And Rulseaudio is also working correctly ? (Without using Qt)

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • zyendZ Offline
                    zyendZ Offline
                    zyend
                    wrote on last edited by
                    #31

                    How can I test if pulseaudio is working fine ?

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #32

                      I'd take a look at thist to check the setup.

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0
                      • V Offline
                        V Offline
                        voptiplex
                        wrote on last edited by
                        #33

                        @zyend - I know the topic is quite old, but could it be a simple explanation of a typo ?
                        You have called the Audio component:
                        id: audioPlayer
                        and then try to play with:
                        idPlayer.play()
                        I think it should be:
                        audioPlayer.play()

                        Maybe I am reading the post wrong.

                        1 Reply Last reply
                        0
                        • zyendZ zyend

                          What do you mean exactly ?

                          Yesterday, in the main.cpp, I dumped the

                          QAudioDeviceInfo::availableDevices(QAudio::AudioOutput)
                          

                          Is that what you meant ? And yes, it dumps the same devices as with

                          aplay -L
                          
                          O Offline
                          O Offline
                          OttoRyynanen
                          wrote on last edited by
                          #34

                          @zyend
                          Although this is an old post, I ended up here Googling for the pulse audio initialization and someone else might do so too so here's important info for the solution of the problem.
                          I too ran into issue that pulseaudio was no longer running since the

                          QAudioDeviceInfo::availableDevices(QAudio::AudioOutput)
                          

                          had been dropped from the code. This call apparently starts pulseaudio daemon (among other things).
                          Returning it back fixed the issue.

                          1 Reply Last reply
                          0
                          • SGaistS Offline
                            SGaistS Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on last edited by
                            #35

                            @OttoRyynanen Hi and welcome to devnet,

                            Thanks for sharing your findings !

                            Interested in AI ? www.idiap.ch
                            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                            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 Extensions
                            • Unsolved