PlayVariation QML Type

Define a playback variation for sounds. So each time the playback of the same sound can be a slightly different even with the same AudioSample. More...

Import Statement: import QtAudioEngine 1.0
Since: Qt 5.0
Inherits:

Item

Properties

Detailed Description

This type is part of the QtAudioEngine 1.0 module.

PlayVariation must be defined inside a Sound.

import QtQuick 2.0
import QtAudioEngine 1.0

Rectangle {
    color:"white"
    width: 300
    height: 500

    AudioEngine {
        id:audioengine

        AudioSample {
            name:"explosion01"
            source: "explosion-01.wav"
        }

        AudioSample {
            name:"explosion02"
            source: "explosion-02.wav"
        }

        Sound {
            name:"explosion"
            PlayVariation {
                sample:"explosion01"
                minPitch: 0.8
                maxPitch: 1.1
            }
            PlayVariation {
                sample:"explosion01"
                minGain: 1.1
                maxGain: 1.5
            }
        }
    }
}

Property Documentation

looping : bool

This property indicates whether the playback will be looped or not.


maxGain : real

This property specifies the maximum gain adjustment that can be applied in any playback.


maxPitch : real

This property specifies the maximum pitch adjustment that can be applied in any playback.


minGain : real

This property specifies the minimum gain adjustment that can be applied in any playback.


minPitch : real

This property specifies the minimum pitch adjustment that can be applied in any playback.


sample : string

This property specifies which AudioSample this variation will use.


© 2015 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.