Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qquick3daudioengine_p.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 QQUICK3DAUDIOENGINE_H
4#define QQUICK3DAUDIOENGINE_H
5
6//
7// W A R N I N G
8// -------------
9//
10// This file is not part of the Qt API. It exists purely as an
11// implementation detail. This header file may change from version to
12// version without notice, or even be removed.
13//
14// We mean it.
15//
16
17#include <private/qquick3dnode_p.h>
18#include <QtGui/qvector3d.h>
19#include <qaudioengine.h>
20
22
24
26{
28 QML_NAMED_ELEMENT(AudioEngine)
32
33public:
34 // Keep in sync with QAudioEngine::OutputMode
39 };
41
44
46 OutputMode outputMode() const;
47
50
51 void setMasterVolume(float volume);
52 float masterVolume() const;
53
54 static QAudioEngine *getEngine();
55
60};
61
63
64#endif
IOBluetoothDevice * device
The QAudioDevice class provides an information about audio devices and their functionality.
\inmodule QtSpatialAudio
\inmodule QtCore
Definition qobject.h:90
QQuick3DAudioEngine()
\qmltype AudioEngine \inqmlmodule QtQuick3D.SpatialAudio
void setOutputDevice(const QAudioDevice &device)
\qmlproperty QtMultimedia.AudioDevice AudioEngine::outputDevice
static QAudioEngine * getEngine()
void setMasterVolume(float volume)
\qmlproperty float AudioEngine::masterVolume
void setOutputMode(OutputMode mode)
\qmlproperty enumeration AudioEngine::outputMode
Combined button and popup list for selecting options.
GLenum mode
#define QML_NAMED_ELEMENT(NAME)
#define Q_ENUM(x)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_SIGNALS