summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathias Hasselmann <mathias.hasselmann@kdab.com>2013-11-14 01:18:24 +0100
committerMathias Hasselmann <mathias.hasselmann@kdab.com>2013-11-14 01:18:24 +0100
commitc6daa77860f0d656796b5f38f965a58a8e6a1bcd (patch)
tree806e4293bf7a54fc85e536230b8f9ac673179be2
parent37ac24f73170070b69413fb83eeef64d980f3e6a (diff)
downloadqtquickstreamer-c6daa77860f0d656796b5f38f965a58a8e6a1bcd.tar.gz
qtquickstreamer-c6daa77860f0d656796b5f38f965a58a8e6a1bcd.tar.xz
Fix some piano example quirks
-rw-r--r--src/examples/piano/qml/Piano.qml13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/examples/piano/qml/Piano.qml b/src/examples/piano/qml/Piano.qml
index 2aa7c0a..ab975bf 100644
--- a/src/examples/piano/qml/Piano.qml
+++ b/src/examples/piano/qml/Piano.qml
@@ -35,7 +35,6 @@ Rectangle {
onPressedChanged: {
audioSource.freq = frequency
audioSource.volume = pressed ? 1 : 0
- pipeline.state = ElementState.Playing
}
}
}
@@ -69,7 +68,6 @@ Rectangle {
onPressedChanged: {
audioSource.freq = frequency
audioSource.volume = pressed ? 1 : 0
- pipeline.state = ElementState.Playing
}
}
}
@@ -78,30 +76,27 @@ Rectangle {
Pipeline {
id: pipeline
- // state: ElementState.Playing // FIXME: this should be set after plugging all elements
+ Component.onCompleted: state = ElementState.Playing
AudioTestSrc {
id: audioSource
Behavior on volume {
NumberAnimation {
- easing: Easing.OutQuart
+ easing.type: Easing.OutQuart
duration: 100
}
}
- /* fun:
Behavior on freq {
NumberAnimation {
- easing: Easing.OutQuart
- duration: 1500
+ easing.type: Easing.OutQuart
+ duration: 50
}
}
- */
volume: 0
wave: AudioTestSrcWave.SineTable
-// wave: 12
}
AutoAudioSink {