Uploaded image for project: 'Qt Mobility'
  1. Qt Mobility
  2. QTMOBILITY-947

QML SoundEffect and Audio elements play at different volumes on Symbian

    XMLWordPrintable

Details

    • e145bd5591b0f54a5e9facc9a93df465591b28f4

    Description

      Play identical file with both SoundEffect and Audio element with volume set to 0.3. The actual playback volume is considerably different. Most developers will expect it to be the same. SoundEffect playes the waveform much louder.

      SoundEffect { 
          source: "alarm.wav"
          volume: 0.3 
      }
      
      Audio { 
          source: "alarm.wav"
          volume: 0.3 
      }
      

      Tested on top of Qt Mobility 1.1 branch 44a131af300c1618455415b8f78a914b74ceb658 and Qt 4.7 branch 9e26955ab926afe1bc3306d5f6fcab0c5dfe4db1.

      BTW SoundEffect QML documentation mentions volume property being of type int, when in fact it nowadays is real:

      /*!
      \qmlproperty int SoundEffect::volume

      This property holds the volume of the playback, from 0.0 (silent) to 1.0 (maximum volume).
      */

      http://doc.qt.nokia.com/qtmobility-1.1/qml-soundeffect.html#volume-prop

      Attachments

        Activity

          People

            hawcroft Derick Hawcroft (closed Nokia identity) (Inactive)
            jpetrell Joona Petrell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: