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
#
include
<
QtSpatialAudio
/
private
/
qambientsound_p
.
h
>
20
#
include
<
QtSpatialAudio
/
private
/
qaudioengine_p
.
h
>
21
#
include
<
QtCore
/
qurl
.
h
>
22
#
include
<
QtCore
/
qmutex
.
h
>
23
#
include
<
QtGui
/
qquaternion
.
h
>
24
#
include
<
QtGui
/
qvector3d
.
h
>
25
#
include
<
QtMultimedia
/
qaudiobuffer
.
h
>
26
#
include
<
QtMultimedia
/
qaudiodevice
.
h
>
27
28
QT_BEGIN_NAMESPACE
29
30
class
QAudioDecoder;
31
class
QAudioEnginePrivate
;
32
33
class
QSpatialSoundPrivate
:
public
QAmbientSoundPrivate
34
{
35
Q_DECLARE_PUBLIC(QSpatialSound)
36
37
public
:
38
QSpatialSoundPrivate
() :
QAmbientSoundPrivate
(1) { }
39
40
static
QSpatialSoundPrivate
*
get
(
QSpatialSound
*
soundSource
)
41
{
42
return
soundSource
?
soundSource
->
d_func
() :
nullptr
;
43
}
44
45
QVector3D
pos
;
46
QQuaternion
rotation
;
47
QSpatialSound
::
DistanceModel
distanceModel
=
QSpatialSound
::
DistanceModel
::
Logarithmic
;
48
float
size
= .1f;
49
float
distanceCutoff
= 50.f;
50
float
manualAttenuation
= 0.f;
51
float
occlusionIntensity
= 0.f;
52
float
directivity
= 0.f;
53
float
directivityOrder
= 1.f;
54
float
nearFieldGain
= 0.f;
55
float
wallDampening
= 1.f;
56
float
wallOcclusion
= 0.f;
57
58
void
updateDistanceModel
();
59
void
updateRoomEffects
();
60
};
61
62
QT_END_NAMESPACE
63
64
#
endif
QAudioEnginePrivate
Definition
qaudioengine_p.h:39
QSpatialSoundPrivate
Definition
qspatialsound_p.h:34
QSpatialSoundPrivate::distanceCutoff
float distanceCutoff
Definition
qspatialsound_p.h:49
QSpatialSoundPrivate::updateDistanceModel
void updateDistanceModel()
Definition
qspatialsound.cpp:156
QSpatialSoundPrivate::updateRoomEffects
void updateRoomEffects()
Definition
qspatialsound.cpp:177
QSpatialSoundPrivate::wallOcclusion
float wallOcclusion
Definition
qspatialsound_p.h:56
QSpatialSoundPrivate::wallDampening
float wallDampening
Definition
qspatialsound_p.h:55
QSpatialSoundPrivate::nearFieldGain
float nearFieldGain
Definition
qspatialsound_p.h:54
QSpatialSoundPrivate::directivityOrder
float directivityOrder
Definition
qspatialsound_p.h:53
QSpatialSoundPrivate::directivity
float directivity
Definition
qspatialsound_p.h:52
QSpatialSoundPrivate::occlusionIntensity
float occlusionIntensity
Definition
qspatialsound_p.h:51
QSpatialSoundPrivate::size
float size
Definition
qspatialsound_p.h:48
QSpatialSoundPrivate::manualAttenuation
float manualAttenuation
Definition
qspatialsound_p.h:50
QSpatialSoundPrivate::rotation
QQuaternion rotation
Definition
qspatialsound_p.h:46
QPlatformGraphicsBufferHelper
\inmodule QtGui
qtmultimedia
src
spatialaudio
qspatialsound_p.h
Generated on
for Qt by
1.14.0