Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qaudiolistener.h
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
3#ifndef QLISTENER_H
4#define QLISTENER_H
5
6#include <QtSpatialAudio/qtspatialaudioglobal.h>
7#include <QtCore/QObject>
8#include <QtMultimedia/qaudioformat.h>
9#include <QtGui/qvector3d.h>
10#include <QtGui/qquaternion.h>
11
13
14class QAudioEngine;
15
17class Q_SPATIALAUDIO_EXPORT QAudioListener : public QObject
18{
19public:
22
24 QVector3D position() const;
25 void setRotation(const QQuaternion &q);
26 QQuaternion rotation() const;
27
28 QAudioEngine *engine() const;
29
30private:
31 void setEngine(QAudioEngine *engine);
32 QAudioListenerPrivate *d = nullptr;
33};
34
36
37#endif
\inmodule QtSpatialAudio
\inmodule QtSpatialAudio
\inmodule QtCore
Definition qobject.h:103
The QQuaternion class represents a quaternion consisting of a vector and scalar.
The QVector3D class represents a vector or vertex in 3D space.
Definition qvectornd.h:171
Combined button and popup list for selecting options.
n void setPosition(void) \n\
GLdouble GLdouble GLdouble GLdouble q
Definition qopenglext.h:259
static qreal position(const QQuickItem *item, QQuickAnchors::Anchor anchorLine)
QJSEngine engine
[0]