Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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{
27 Q_OBJECT
28 QML_NAMED_ELEMENT(AudioEngine)
33
34public:
35 // Keep in sync with QAudioEngine::OutputMode
41 Q_ENUM(OutputMode)
42
45
46 void setOutputMode(OutputMode mode);
47 OutputMode outputMode() const;
48
49 void setOutputDevice(const QAudioDevice &device);
50 QAudioDevice outputDevice() const;
51
52 void setMasterVolume(float volume);
53 float masterVolume() const;
54
55 void setDistanceScale(float scale);
56 float distanceScale() const;
57
58 static QAudioEngine *getEngine();
59
65};
66
67QT_END_NAMESPACE
68
69#endif
void setAutoPlay(bool autoPlay)
void pause()
\qmlmethod AmbientSound::pause()
void stop()
\qmlmethod AmbientSound::stop()
bool autoPlay() const
\qmlproperty bool AmbientSound::autoPlay
QUrl source() const
\qmlproperty url AmbientSound::source
void setVolume(float volume)
\qmlproperty real AmbientSound::volume
void setOutputDevice(const QAudioDevice &device)
\qmlproperty QtMultimedia.AudioDevice AudioEngine::outputDevice
static QAudioEngine * getEngine()
void setMasterVolume(float volume)
\qmlproperty real AudioEngine::masterVolume
QAudioDevice outputDevice() const
void setOutputMode(OutputMode mode)
\qmlproperty enumeration AudioEngine::outputMode
OutputMode outputMode() const
void setDistanceScale(float scale)
\qmlproperty real QAudioEngine::distanceScale