Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qquick3daudiolistener.cpp
Go to the documentation of this file.
1// Copyright (C) 2022 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-3.0-only
6
8
26{
32}
33
35{
36 delete m_listener;
37}
38
40{
41 m_listener->setPosition(scenePosition());
42}
43
45{
46 m_listener->setRotation(sceneRotation());
47}
48
\inmodule QtSpatialAudio
void setRotation(const QQuaternion &q)
Sets the listener's orientation in 3D space to q.
void setPosition(QVector3D pos)
Sets the listener's position in 3D space to pos.
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
Definition qobject.cpp:2823
static QAudioEngine * getEngine()
QQuick3DAudioListener()
\qmltype AudioListener \inqmlmodule QtQuick3D.SpatialAudio
QVector3D scenePosition
void sceneRotationChanged()
void scenePositionChanged()
QQuaternion sceneRotation
Combined button and popup list for selecting options.