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. Problems with "spectrum" example
QtWS25 Last Chance

Problems with "spectrum" example

Scheduled Pinned Locked Moved General and Desktop
5.4audioexamples
3 Posts 2 Posters 1.3k 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.
  • B Offline
    B Offline
    batguano
    wrote on 24 May 2015, 21:32 last edited by
    #1

    Hi,
    I'm having problems with the "Spectrum" Example (as well as in an app of mine that's based on that code). This occurs when playing back a song from a WAV file.

    Problem #1 is only in Qt 5.4.1, and does not appear in Qt 5.3.1
    The spectrum display flashes blank every few seconds; deeper exploration seems to indicate that the spectrum is intermittently returning all zeros.

    Problem #2 occurs in both 5.4 and 5.3, and is also intermittent. The "audioNotify" signal stops getting emitted, and the spectrum stops getting updated, even though the song continues to play. The debug output of the engine shows this right before the audioNotify signals stop:

    Engine::audioStateChanged from ActiveStatetoActiveState
    Engine::audioStateChanged from ActiveStatetoActiveState
    

    (Yes, it prints it twice)
    Pausing and restarting the song will cause the the problem to go away.

    Is anyone else having these problems? I've played with it quite a bit, and can supply more debugging clues. But I didn't want to overwhelm the first post with what might be superfluous details.

    FYI, this is on Mac OS X, and has been a problem from OS 10.8 onwards.

    Any insight appreciated. Thanks very much!

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 24 May 2015, 21:41 last edited by
      #2

      Hi,

      Sounds like there might be a bug in the QtMultimedia module. You should take a look at the bug report system to see if it's something known. If not please consider opening a new report providing as much details you can.

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

      B 1 Reply Last reply 24 May 2015, 22:22
      0
      • S SGaist
        24 May 2015, 21:41

        Hi,

        Sounds like there might be a bug in the QtMultimedia module. You should take a look at the bug report system to see if it's something known. If not please consider opening a new report providing as much details you can.

        B Offline
        B Offline
        batguano
        wrote on 24 May 2015, 22:22 last edited by
        #3

        @SGaist
        Thanks! I didn't see any bug reports that looked relevant. I'll file one.

        1 Reply Last reply
        0

        2/3

        24 May 2015, 21:41

        • Login

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