Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Brainstorm
  4. Alsa Plugin with QT

Alsa Plugin with QT

Scheduled Pinned Locked Moved Unsolved Brainstorm
qtmultimediaalsapulseaudioqtalsa
7 Posts 3 Posters 1.5k 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.
  • E Offline
    E Offline
    ervaibhavkumar
    wrote on 11 Feb 2022, 10:36 last edited by ervaibhavkumar 2 Nov 2022, 10:37
    #1

    Hi,

    I have seen QAlsaPlugin, QPulseAudioPlugin classes in qtmultimedia source code but it didn't look anyone can use it since it's not exported.

    class QAlsaPlugin : public QAudioSystemPlugin, public QAudioSystemPluginExtension

    If I want to use alsa with qt, how can it be done ?

    Any help will be appreciated.

    Thanks
    Vaibhav

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 11 Feb 2022, 20:13 last edited by
      #2

      Hi and welcome to devnet,

      There's no reason to export these classes as they are plugins that are automatically loaded.

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

      E 1 Reply Last reply 14 Feb 2022, 07:49
      0
      • S SGaist
        11 Feb 2022, 20:13

        Hi and welcome to devnet,

        There's no reason to export these classes as they are plugins that are automatically loaded.

        E Offline
        E Offline
        ervaibhavkumar
        wrote on 14 Feb 2022, 07:49 last edited by ervaibhavkumar
        #3

        @SGaist Thanks for your response.
        So, Is it even possible to specify which plugin we want to use explicitly from QSoundEffect or any other audio multimedia class ?

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 14 Feb 2022, 21:19 last edited by
          #4

          The quick and dirty way is to move the other plugins out of the folder.

          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
          • K Offline
            K Offline
            Kent-Dorfman
            wrote on 15 Feb 2022, 07:37 last edited by Kent-Dorfman
            #5

            While I have zero love for pulseaudio, the hordes have decreed that it is the official sound interface in linux. You'll see less and less direct support for alsa as time goes by...unless the world miraculously regains its sense.

            But to answer your question about direct access to alsa: it is still possible, but probably not directly from the canned Qt classes. You'd have to write your own interface to the alsa sound devices and implement the Qt sound interface classes.

            S 1 Reply Last reply 15 Feb 2022, 08:06
            0
            • K Kent-Dorfman
              15 Feb 2022, 07:37

              While I have zero love for pulseaudio, the hordes have decreed that it is the official sound interface in linux. You'll see less and less direct support for alsa as time goes by...unless the world miraculously regains its sense.

              But to answer your question about direct access to alsa: it is still possible, but probably not directly from the canned Qt classes. You'd have to write your own interface to the alsa sound devices and implement the Qt sound interface classes.

              S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 15 Feb 2022, 08:06 last edited by
              #6

              @Kent-Dorfman I think there's a bit of a mixup here, it's not PulseAudio VS ALSA. To the best of my knowledge, PulseAudio uses ALSA internally. It is a sound server that sits on to of ALSA and provides features like allowing multiple applications to access audio devices at the same time which is something that ALSA does not do however ALSA provides the hardware accessibility part.

              Qt has had several several different backends for that over the years like Phonon which was an audio engine that would also interface with the system sound engine that ultimately would use ALSA at the bottom.

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

              E 1 Reply Last reply 21 Feb 2022, 06:27
              0
              • S SGaist
                15 Feb 2022, 08:06

                @Kent-Dorfman I think there's a bit of a mixup here, it's not PulseAudio VS ALSA. To the best of my knowledge, PulseAudio uses ALSA internally. It is a sound server that sits on to of ALSA and provides features like allowing multiple applications to access audio devices at the same time which is something that ALSA does not do however ALSA provides the hardware accessibility part.

                Qt has had several several different backends for that over the years like Phonon which was an audio engine that would also interface with the system sound engine that ultimately would use ALSA at the bottom.

                E Offline
                E Offline
                ervaibhavkumar
                wrote on 21 Feb 2022, 06:27 last edited by
                #7

                @SGaist and @Kent-Dorfman Thanks for your inputs.

                1 Reply Last reply
                0

                1/7

                11 Feb 2022, 10:36

                • Login

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