AudioSample

Load audio samples, mostly .wav. More...

Import Statement: import QtAudioEngine 1.0
Since: Qt 5.0

Detailed Description

AudioSample is part of the QtAudioEngine 1.0 module.

It can be accessed through QtAudioEngine1::AudioEngine::samples with its unique name and must be defined inside AudioEngine.

import QtQuick 2.0
import QtAudioEngine 1.0

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

    AudioEngine {
        id:audioengine

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