Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Diagnosing audio problems
Forum Update on Monday, May 27th 2025

Diagnosing audio problems

Scheduled Pinned Locked Moved Unsolved General and Desktop
qaudiodeviceinfunix
17 Posts 2 Posters 5.7k 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.
  • S Offline
    S Offline
    SGaist
    Lifetime Qt Champion
    wrote on 19 Apr 2016, 19:58 last edited by SGaist
    #8

    Did you check that you have all QtMultimedia plugins installed ?

    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
    • N Offline
      N Offline
      nulluse
      wrote on 19 Apr 2016, 20:27 last edited by nulluse
      #9

      Oh, on Unix that would be

      PulseAudio (Unix)
      Alsa (Unix)

      That may be the case: FreeBSD comes with OSS and Alsa is optional. I did not have Alsa installed, that may be it. I will install, re-test and reply back.

      But I do not understand why Gstreamer is not sufficient if it is Qt's back end for Unix.
      And how could KDE sound work if Qt could not detect any audio devices. This simply does not make any sense.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 19 Apr 2016, 21:38 last edited by
        #10

        Depending on your version of KDE, it's phonon that's used.

        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
        • N Offline
          N Offline
          nulluse
          wrote on 20 Apr 2016, 15:24 last edited by
          #11

          So what's the next step?

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 20 Apr 2016, 20:37 last edited by
            #12

            Start your application with QT_DEBUG_PLUGINS=1 to see what's going on when your application starts.

            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
            • N Offline
              N Offline
              nulluse
              wrote on 21 Apr 2016, 00:35 last edited by
              #13

              These lines have something to do with audio:

              QFactoryLoader::QFactoryLoader() checking directory path "/usr/local/lib/qt5/plugins/audio" ... // there is no audio directory
              QFactoryLoader::QFactoryLoader() checking directory path "/usr/home/leo/NetBeansProjects/OscilloscopeQT/dist/Debug/GNU-Generic/audio" ...
              QFactoryLoader::QFactoryLoader() checking directory path "/usr/home/leo/.kde4/lib/kde4/plugins/audio" ... // there is no .kde4/lib
              QFactoryLoader::QFactoryLoader() checking directory path "/usr/local/lib/kde4/plugins/audio" ... // also no audio directory
              

              Is there a manual on installing the Qt audio plugins under Unix?

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 21 Apr 2016, 15:58 last edited by
                #14

                That looks strange, you should check with the FreeBSD guys.

                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
                • N Offline
                  N Offline
                  nulluse
                  wrote on 23 Apr 2016, 13:53 last edited by
                  #15

                  According to https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208987 multimedia audio plugins cannot be installed from the packages under FreeBSD.
                  They have to be compiled from the ports tree and select the options to build audio plugins and use ALSA or PA:

                  cd /usr/ports/multimedia/qt5-multimedia
                  make config 
                  make deinstall install clean
                  

                  But still there are no devices recognized after reinstalling with the compiled audio plugins:

                   QFactoryLoader::QFactoryLoader() checking directory path "/usr/local/lib/qt5/plugins/audio" ...
                   QFactoryLoader::QFactoryLoader() looking at "/usr/local/lib/qt5/plugins/audio/libqtaudio_alsa.so"
                  Found metadata in lib /usr/local/lib/qt5/plugins/audio/libqtaudio_alsa.so, metadata=
                   {
                  "IID": "org.qt-project.qt.audiosystemfactory/5.0",
                  "MetaData": {
                   "Keys": [
                  "alsa"
                  ]
                   },
                   "className": "QAlsaPlugin",
                   "debug": false,
                  "version": 328961
                   }
                  
                  
                  Got keys from plugin meta data ("alsa")
                  QFactoryLoader::QFactoryLoader() checking directory path "/usr/local/lib/kde4/plugins/audio" ...
                   loaded library "/usr/local/lib/qt5/plugins/audio/libqtaudio_alsa.so"
                   Device count: 0
                  Device count: 0
                  
                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 23 Apr 2016, 20:53 last edited by
                    #16

                    What about PA ?

                    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
                    • N Offline
                      N Offline
                      nulluse
                      wrote on 27 Apr 2016, 23:50 last edited by
                      #17

                      I am very hesitant to use or rely on PA due to horrible latency and frankly the whole concept of having a sound server where only mic input and speaker output are required sounds outlandish to me.

                      1 Reply Last reply
                      0

                      17/17

                      27 Apr 2016, 23:50

                      • Login

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