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
qquick3dspatialsound_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 QQUICK3DSPATIALSOUND_H
4#define QQUICK3DSPATIALSOUND_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 <QUrl>
19#include <qvector3d.h>
20#include <qspatialsound.h>
21
23
25{
30 Q_PROPERTY(float size READ size WRITE setSize NOTIFY sizeChanged)
39 QML_NAMED_ELEMENT(SpatialSound)
40
41public:
44
45 void setSource(QUrl source);
46 QUrl source() const;
47
48 void setVolume(float volume);
49 float volume() const;
50
57
60
61 void setSize(float min);
62 float size() const;
63
64 void setDistanceCutoff(float max);
65 float distanceCutoff() const;
66
67 void setManualAttenuation(float attenuation);
68 float manualAttenuation() const;
69
70 void setOcclusionIntensity(float occlusion);
71 float occlusionIntensity() const;
72
73 void setDirectivity(float alpha);
74 float directivity() const;
75
76 void setDirectivityOrder(float alpha);
77 float directivityOrder() const;
78
79 void setNearFieldGain(float gain);
80 float nearFieldGain() const;
81
82 enum Loops
83 {
85 Once = 1
86 };
88
89 int loops() const;
90 void setLoops(int loops);
91
92 bool autoPlay() const;
93 void setAutoPlay(bool autoPlay);
94
95public Q_SLOTS:
96 void play();
97 void pause();
98 void stop();
99
113
114private Q_SLOTS:
115 void updatePosition();
116 void updateRotation();
117
118protected:
120
121private:
122 QSpatialSound *m_sound = nullptr;
123};
124
126
127#endif
void setDirectivity(float alpha)
\qmlproperty float SpatialSound::directivity
void setAutoPlay(bool autoPlay)
void manualAttenuationChanged()
void setManualAttenuation(float attenuation)
\qmlproperty float SpatialSound::manualAttenuation
void pause()
\qmlmethod SpatialSound::pause()
void play()
\qmlmethod SpatialSound::play()
Q_ENUM(DistanceModel)
void occlusionIntensityChanged()
void setDistanceCutoff(float max)
\qmlproperty float SpatialSound::distanceCutoff
void setDirectivityOrder(float alpha)
\qmlproperty float SpatialSound::directivityOrder
void setSize(float min)
\qmlproperty float SpatialSound::size
void stop()
\qmlmethod SpatialSound::stop()
void setDistanceModel(DistanceModel model)
\qmlproperty enumeration SpatialSound::distanceModel
QSSGRenderGraphObject * updateSpatialNode(QSSGRenderGraphObject *) override
void setVolume(float volume)
\qmlproperty float SpatialSound::volume
void directivityOrderChanged()
void setOcclusionIntensity(float occlusion)
\qmlproperty float SpatialSound::occlusionIntensity
void setNearFieldGain(float gain)
\qmlproperty float SpatialSound::nearFieldGain
\inmodule QtSpatialAudio
\inmodule QtCore
Definition qurl.h:94
Combined button and popup list for selecting options.
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLsizei GLsizei GLchar * source
GLfloat GLfloat GLfloat alpha
Definition qopenglext.h:418
#define QML_NAMED_ELEMENT(NAME)
#define Q_ENUM(x)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_SLOTS
#define Q_SIGNALS
QSqlQueryModel * model
[16]