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

QSoundEffect change source hear both on Linux

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.6.2
    • 5.5.0
    • Multimedia
    • None
    • Linux, OpenSuSE 13.2
    • 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
          Uwe Köhler
        2. QSoundEffectTrial.zip
          437 kB
          Uwe Köhler
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ylopes Yoann Lopes
            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