Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. play opus with opus_decode + QAudioOutput
Forum Updated to NodeBB v4.3 + New Features

play opus with opus_decode + QAudioOutput

Scheduled Pinned Locked Moved Unsolved Game Development
6 Posts 2 Posters 1.8k 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.
  • B Offline
    B Offline
    BRULE Herman
    wrote on last edited by
    #1

    Hi,
    I search player any type of opus file via opus_decode ++ QAudioOutput, my code:
    https://pastebin.com/SvzceMY5
    I wish only a simple play.
    Some body can fix my example?
    Cheers,

    Developer of Ultracopier/Supercopier and of the game CatchChallenger, CEO of DataCenter/ISP Confiared

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

      Hi,

      You should explain what your application does.currently rather that just leaving the code there for someone to parse, analyse and make it run.

      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
      • B Offline
        B Offline
        BRULE Herman
        wrote on last edited by
        #3

        Actually nothing. I just try play opus file, decoding via libopus, play via Qt.

        Developer of Ultracopier/Supercopier and of the game CatchChallenger, CEO of DataCenter/ISP Confiared

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

          Did you saw that you didn't open your QBuffer object ?

          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
          • B Offline
            B Offline
            BRULE Herman
            wrote on last edited by
            #5

            QBuffer it's just here to try QSound. The probleme seam be out of here.

            Developer of Ultracopier/Supercopier and of the game CatchChallenger, CEO of DataCenter/ISP Confiared

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

              Well... You are technically writing to a closed QIODevice. So how can you expect to get something out of that buffer ?

              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