diff options
author | Yoann Lopes <yoann.lopes@theqtcompany.com> | 2015-03-18 18:08:32 +0100 |
---|---|---|
committer | Yoann Lopes <yoann.lopes@theqtcompany.com> | 2015-04-07 12:08:01 +0000 |
commit | 0cd222c9b4d9658feddf427fa0a58cfe5cdba504 (patch) | |
tree | 2e52b6955a54915d408e78d1d84d482f66695164 /examples/multimedia/audioengine/qml/audioengine.qml | |
parent | 197373b2d10daa6c5904ed9295a2d6c6ed2c8b1d (diff) |
Fix audioengine example.
- Add missing audio files
- Fix 'Unable to assign double to QVector3D' warning
- Don't show decimal part of the volume
Task-number: QTBUG-41841
Task-number: QTBUG-44304
Change-Id: Ie24284242bbac0d10bd85841932c506d7634a514
Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com>
Reviewed-by: Christian Stromme <christian.stromme@theqtcompany.com>
Diffstat (limited to 'examples/multimedia/audioengine/qml/audioengine.qml')
-rw-r--r-- | examples/multimedia/audioengine/qml/audioengine.qml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/multimedia/audioengine/qml/audioengine.qml b/examples/multimedia/audioengine/qml/audioengine.qml index 3907f906b..fb3394246 100644 --- a/examples/multimedia/audioengine/qml/audioengine.qml +++ b/examples/multimedia/audioengine/qml/audioengine.qml @@ -65,7 +65,7 @@ Rectangle { loops: Animation.Infinite running: true NumberAnimation { - duration: 8000 + duration: 12000 from: 0 to: 1 } @@ -113,7 +113,7 @@ Rectangle { } velocity: { var speed = root.twoPi * root.radius / 4; - return shipSound.direction * speed; + return shipSound.direction.times(speed); } Component.onCompleted: shipSound.play() @@ -137,7 +137,7 @@ Rectangle { color: "lightgreen" } Text { - text: " volume:" + volumeBar.volumeCtrl.volume * 100 +"%"; + text: " volume:" + Math.round(volumeBar.volumeCtrl.volume * 100) +"%"; font.pointSize: 16; font.italic: true; color: "black" |