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
Forum Updated to NodeBB v4.3 + New Features

Alsa Plugin with QT

Scheduled Pinned Locked Moved Unsolved Brainstorm
qtmultimediaalsapulseaudioqtalsa
7 Posts 3 Posters 1.6k Views 2 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.
  • E Offline
    E Offline
    ervaibhavkumar
    wrote on last edited by ervaibhavkumar
    #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
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on 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
      0
      • SGaistS SGaist

        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 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
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on 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
          • Kent-DorfmanK Offline
            Kent-DorfmanK Offline
            Kent-Dorfman
            wrote on 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.

            SGaistS 1 Reply Last reply
            0
            • Kent-DorfmanK Kent-Dorfman

              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.

              SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on 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
              0
              • SGaistS SGaist

                @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 last edited by
                #7

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

                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