AudioListener
ImportStatement:
Since:
Inherits:
Properties
direction : vector3d
engine : QtAudioEngine::AudioEngine
gain : real
position : vector3d
up : vector3d
velocity : vector3d
DetailedDescription
这个组件是QtAudioEngine 1.0模块的一部分。
AudioListener仅仅有一个全局的实例,我们可以通过AudioEngine的listener属性访问它。
import QtQuick 2.0
import QtAudioEngine 1.0
Rectangle {
}
我们也可以在AudioEngine的外部定义它
import QtQuick 2.0
import QtAudioEngine 1.0
Rectangle {
}
在某些情况下,这种外部定义的方式可以简化QML的绑定。
PropertyDocumentation
direction : vector3d
倾听者规范的3D方向。
engine : QtAudioEngine::AudioEngine
指定AudioEngine,只能设置一次。
gain : real
这个属性调整声音引擎的所有输出实例。
position : vector3d
倾听者的3D位置。
up : vector3d
倾听者的规范3D的up矢量。
velocity : vector3d
倾听者3D的velocity矢量。