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

SoundEffect on Android only plays sounds longer than 100 ms

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.3.1
    • 5.2.0
    • Multimedia
    • None
    • Android 4.4 kitkat running on a Samsung galaxy S2.
    • Android

    Description

      Using QtMultimedia - SoundEffect: Sounds of duration 20 or 50 ms do not play at all on my Android device, but 100 ms duration works. Did not figure out exactly where the cutoff limit is as I suspect that can be device or OS-version specific anyway. The two attached wave files are identical except the longer one has 50 ms of silence added to the end.

      If this is a android system limitation then it should at least be documented under platform notes.

      Tested using the following code:

      import QtQuick 2.2
      import QtMultimedia 5.0

      Rectangle {
      SoundEffect

      { id: testSound source: "qrc:///qml/50ms-doesntwork.wav" }

      MouseArea {
      anchors.fill: parent
      onClicked:

      { console.log("playing!"); testSound.play(); }

      }
      }

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            stromme Christian
            spersson Simon Persson
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes