summaryrefslogtreecommitdiffstats
path: root/src/imports/audioengine
diff options
context:
space:
mode:
authorKonstantin Ritt <ritt.ks@gmail.com>2015-04-11 19:51:01 +0400
committerKonstantin Ritt <ritt.ks@gmail.com>2015-04-13 09:58:53 +0000
commit37d5b53faec7df4c4ca673599165c272848200fb (patch)
treec18d6cc89191dfbfa25c3dfe32d20d6f1accb194 /src/imports/audioengine
parent277d104faa987533543b7071234beb4a21980b25 (diff)
[AudioEngine] Minor improvement to the docu snippets
Without mentioning the playType property, it is unclear for the user not familiar with AudioEngine why there are several PlayVariation-s binded to a single Sound element. Also fix a simply typo. Change-Id: Ie6b4bff759318c70c94e75797cc6991cb9b918ca Reviewed-by: Yoann Lopes <yoann.lopes@theqtcompany.com>
Diffstat (limited to 'src/imports/audioengine')
-rw-r--r--src/imports/audioengine/qdeclarative_playvariation_p.cpp3
-rw-r--r--src/imports/audioengine/qdeclarative_sound_p.cpp3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/imports/audioengine/qdeclarative_playvariation_p.cpp b/src/imports/audioengine/qdeclarative_playvariation_p.cpp
index fee21bc0a..38876c227 100644
--- a/src/imports/audioengine/qdeclarative_playvariation_p.cpp
+++ b/src/imports/audioengine/qdeclarative_playvariation_p.cpp
@@ -81,13 +81,14 @@ QT_USE_NAMESPACE
Sound {
name:"explosion"
+ playType: Sound.Random
PlayVariation {
sample:"explosion01"
minPitch: 0.8
maxPitch: 1.1
}
PlayVariation {
- sample:"explosion01"
+ sample:"explosion02"
minGain: 1.1
maxGain: 1.5
}
diff --git a/src/imports/audioengine/qdeclarative_sound_p.cpp b/src/imports/audioengine/qdeclarative_sound_p.cpp
index 2ce499187..b5f7a7b49 100644
--- a/src/imports/audioengine/qdeclarative_sound_p.cpp
+++ b/src/imports/audioengine/qdeclarative_sound_p.cpp
@@ -169,13 +169,14 @@ void QDeclarativeSoundCone::componentComplete()
Sound {
name:"explosion"
+ playType: Sound.Random
PlayVariation {
sample:"explosion01"
minPitch: 0.8
maxPitch: 1.1
}
PlayVariation {
- sample:"explosion01"
+ sample:"explosion02"
minGain: 1.1
maxGain: 1.5
}