[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>
This commit is contained in:
Konstantin Ritt
2015-04-11 19:51:01 +04:00
parent 277d104faa
commit 37d5b53fae
2 changed files with 4 additions and 2 deletions

View File

@@ -81,13 +81,14 @@ QT_USE_NAMESPACE
Sound { Sound {
name:"explosion" name:"explosion"
playType: Sound.Random
PlayVariation { PlayVariation {
sample:"explosion01" sample:"explosion01"
minPitch: 0.8 minPitch: 0.8
maxPitch: 1.1 maxPitch: 1.1
} }
PlayVariation { PlayVariation {
sample:"explosion01" sample:"explosion02"
minGain: 1.1 minGain: 1.1
maxGain: 1.5 maxGain: 1.5
} }

View File

@@ -169,13 +169,14 @@ void QDeclarativeSoundCone::componentComplete()
Sound { Sound {
name:"explosion" name:"explosion"
playType: Sound.Random
PlayVariation { PlayVariation {
sample:"explosion01" sample:"explosion01"
minPitch: 0.8 minPitch: 0.8
maxPitch: 1.1 maxPitch: 1.1
} }
PlayVariation { PlayVariation {
sample:"explosion01" sample:"explosion02"
minGain: 1.1 minGain: 1.1
maxGain: 1.5 maxGain: 1.5
} }