Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-48982

QSoundEffect change source hear both on Linux

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.5.0
    • Fix Version/s: 5.6.2
    • Component/s: Multimedia
    • Labels:
      None
    • Environment:
      Linux, OpenSuSE 13.2
    • Commits:
      c7ae48c5fb5005efae05f2cabdeee7117f6f72fa

      Description

      When changing the source of a QSoundEffect I will hear the old and the new sound during the first play() and only the new sound in following play()s. I created a short test project that shows the effect for C++, but I found the same when using QML.

      The output.wav shows the effect of issuing

      mSoundEffect.setSource(QUrl::fromLocalFile(":/beep2.wav"));
      mSoundEffect.play();

      three times in a row. The first occasion is wrong the two others correct.

      This only happens on Linux. I tried the code on my Moto G Android phone and everything works as expected

        Attachments

        1. output.wav
          1.05 MB
        2. QSoundEffectTrial.zip
          437 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            ylopes Yoann Lopes
            Reporter:
            ukoehler Uwe Köhler
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes