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. Play an audio file with libsndfile

Play an audio file with libsndfile

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 531 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.
  • H Offline
    H Offline
    HW-Developer
    wrote on last edited by HW-Developer
    #1

    Hi
    I want to create an app playing an audio file using libsndfile and wasapi, i already play it in the constructor of the class but i can't figure out how to do it when clicking play button and link the audio to a slider to see the progress of the audio and move it to a chosen position.
    When we play it using just Qt, we use the QMediaPlayer but how can i do it now with libsndfile ?
    If anyone has an idea, i'll apreciate it as a beginner. Thank you!

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

      Hi,

      You will have to write a wrapper class that will interact with libsndfile and your application will use that wrapper class.

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

      H 1 Reply Last reply
      2
      • SGaistS SGaist

        Hi,

        You will have to write a wrapper class that will interact with libsndfile and your application will use that wrapper class.

        H Offline
        H Offline
        HW-Developer
        wrote on last edited by HW-Developer
        #3

        @SGaist Is there an example of a wrapper class ? Please!

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

          Qt is full of them, the QtMultimedia backend's are one of many examples you can read.

          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