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 <QtMultimedia/private/qmultimedia_source_resolver_p.h>
22#include <QtCore/private/qobject_p.h>
23
25
27
29{
30 Q_DECLARE_PUBLIC(QSpatialSound)
31
32public:
34
35 static QSpatialSoundPrivate *get(QSpatialSound *soundSource)
36 {
37 return soundSource ? soundSource->d_func() : nullptr;
38 }
39
40 void applyVolume() override;
41
46 float size = .1f;
47 float distanceCutoff = 50.f;
48 float manualAttenuation = 0.f;
49 float occlusionIntensity = 0.f;
50 float directivity = 0.f;
51 float directivityOrder = 1.f;
52 float nearFieldGain = 0.f;
53 float wallDampening = 1.f;
54 float wallOcclusion = 0.f;
55
57 void updateRoomEffects();
58};
59
60QT_END_NAMESPACE
61
62#endif
void applyVolume() override
QSpatialSound::DistanceModel distanceModel
static QSpatialSoundPrivate * get(QSpatialSound *soundSource)
Combined button and popup list for selecting options.