AudioSample QML Type
Load audio samples, mostly .wav. More...
Import Statement: | import QtAudioEngine 1.0 |
Since: | Qt 5.0 |
Inherits: |
Properties
Signals
Methods
- void load()
Detailed Description
AudioSample
is part of the QtAudioEngine 1.0 module.
It can be accessed through QtAudioEngine::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" } } }
Property Documentation
This property holds the name of the sample, which must be unique among all samples and only defined once.
This property indicates whether this sample needs to be preloaded or not. If true
, the audio engine will start loading the sample file immediately when the application starts, otherwise the sample will not be loaded until explicitly requested.
Signal Documentation
This signal is emitted when loaded is changed.
The corresponding handler is onLoadedChanged
.
Method Documentation
© 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.