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
qspatialsound_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
4
#
ifndef
QSPATIALAUDIOSOUNDSOURCE_P_H
5
#
define
QSPATIALAUDIOSOUNDSOURCE_P_H
6
7
//
8
// W A R N I N G
9
// -------------
10
//
11
// This file is not part of the Qt API. It exists for the convenience
12
// of other Qt classes. This header file may change from version to
13
// version without notice, or even be removed.
14
//
15
// We mean it.
16
//
17
18
#
include
<
QtSpatialAudio
/
qspatialsound
.
h
>
19
20
#
include
<
QtSpatialAudio
/
private
/
qambientsound_p
.
h
>
21
#
include
<
QtCore
/
private
/
qobject_p
.
h
>
22
23
QT_BEGIN_NAMESPACE
24
25
class
QAudioEnginePrivate
;
26
27
class
QSpatialSoundPrivate
:
public
QAmbientSoundPrivate
28
{
29
Q_DECLARE_PUBLIC(QSpatialSound)
30
31
public
:
32
QSpatialSoundPrivate
() :
QAmbientSoundPrivate
(1) { }
33
34
static
QSpatialSoundPrivate
*
get
(
QSpatialSound
*
soundSource
)
35
{
36
return
soundSource
?
soundSource
->
d_func
() :
nullptr
;
37
}
38
39
QVector3D
pos
;
40
QVector3D
unscaledPosition
;
41
QQuaternion
rotation
;
42
QSpatialSound
::
DistanceModel
distanceModel
=
QSpatialSound
::
DistanceModel
::
Logarithmic
;
43
float
size
= .1f;
44
float
distanceCutoff
= 50.f;
45
float
manualAttenuation
= 0.f;
46
float
occlusionIntensity
= 0.f;
47
float
directivity
= 0.f;
48
float
directivityOrder
= 1.f;
49
float
nearFieldGain
= 0.f;
50
float
wallDampening
= 1.f;
51
float
wallOcclusion
= 0.f;
52
53
void
updateDistanceModel
();
54
void
updateRoomEffects
();
55
};
56
57
QT_END_NAMESPACE
58
59
#
endif
QAudioEnginePrivate
Definition
qaudioengine_p.h:37
QSpatialSoundPrivate
Definition
qspatialsound_p.h:28
QSpatialSoundPrivate::distanceCutoff
float distanceCutoff
Definition
qspatialsound_p.h:44
QSpatialSoundPrivate::updateDistanceModel
void updateDistanceModel()
Definition
qspatialsound.cpp:162
QSpatialSoundPrivate::updateRoomEffects
void updateRoomEffects()
Definition
qspatialsound.cpp:183
QSpatialSoundPrivate::unscaledPosition
QVector3D unscaledPosition
Definition
qspatialsound_p.h:40
QSpatialSoundPrivate::wallOcclusion
float wallOcclusion
Definition
qspatialsound_p.h:51
QSpatialSoundPrivate::wallDampening
float wallDampening
Definition
qspatialsound_p.h:50
QSpatialSoundPrivate::nearFieldGain
float nearFieldGain
Definition
qspatialsound_p.h:49
QSpatialSoundPrivate::directivityOrder
float directivityOrder
Definition
qspatialsound_p.h:48
QSpatialSoundPrivate::directivity
float directivity
Definition
qspatialsound_p.h:47
QSpatialSoundPrivate::occlusionIntensity
float occlusionIntensity
Definition
qspatialsound_p.h:46
QSpatialSoundPrivate::size
float size
Definition
qspatialsound_p.h:43
QSpatialSoundPrivate::manualAttenuation
float manualAttenuation
Definition
qspatialsound_p.h:45
QSpatialSoundPrivate::rotation
QQuaternion rotation
Definition
qspatialsound_p.h:41
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qrandomaccessasyncfile_darwin.mm:17
qtmultimedia
src
spatialaudio
qspatialsound_p.h
Generated on
for Qt by
1.16.1