From 37d5b53faec7df4c4ca673599165c272848200fb Mon Sep 17 00:00:00 2001 From: Konstantin Ritt Date: Sat, 11 Apr 2015 19:51:01 +0400 Subject: [PATCH] [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 --- src/imports/audioengine/qdeclarative_playvariation_p.cpp | 3 ++- src/imports/audioengine/qdeclarative_sound_p.cpp | 3 ++- 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 fee21bc..38876c2 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 2ce4991..b5f7a7b 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 } -- 2.7.4