Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QSoundEffect plays faster/slower
QtWS25 Last Chance

QSoundEffect plays faster/slower

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 2 Posters 960 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.
  • M Offline
    M Offline
    MartinD
    wrote on last edited by MartinD
    #1

    Hello,
    I have a problem that our approx. 20s long wav sound plays much faster/slower (so the voice in the sound is much higher/lower). The problem appears mainly when the voice.source is changed for the second time in onSomeEvent:

        SoundEffect {
            id: voice
        }
    // later in the code in some QML element:
          onSomeEvent: {
                voice.source = pathToTheVoice
                voice.play();
          }
    

    I don't have an idea how to solve the problem? Can you please advise? I use Qt 5.6.

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

      Hi,

      I havet used that class yet but there might be the loading of the file not yet done that might have a role in that matter.

      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
      • M MartinD

        Hello,
        I have a problem that our approx. 20s long wav sound plays much faster/slower (so the voice in the sound is much higher/lower). The problem appears mainly when the voice.source is changed for the second time in onSomeEvent:

            SoundEffect {
                id: voice
            }
        // later in the code in some QML element:
              onSomeEvent: {
                    voice.source = pathToTheVoice
                    voice.play();
              }
        

        I don't have an idea how to solve the problem? Can you please advise? I use Qt 5.6.

        M Offline
        M Offline
        MartinD
        wrote on last edited by
        #3

        I reported this as a bug https://bugreports.qt.io/browse/QTBUG-54262

        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