Qt 6.x
The Qt SDK
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 <qspatialsound.h>
19#include <qaudioengine_p.h>
20#include <qurl.h>
21#include <qvector3d.h>
22#include <qquaternion.h>
23#include <qaudiobuffer.h>
24#include <qaudiodevice.h>
25#include <qmutex.h>
26
28
29class QAudioDecoder;
31
33{
34public:
37 {}
38
40 { return soundSource ? soundSource->d : nullptr; }
41
45 float size = .1f;
46 float distanceCutoff = 50.f;
47 float manualAttenuation = 0.f;
48 float occlusionIntensity = 0.f;
49 float directivity = 0.f;
50 float directivityOrder = 1.f;
51 float nearFieldGain = 0.f;
52 float wallDampening = 1.f;
53 float wallOcclusion = 0.f;
54
56 void updateRoomEffects();
57};
58
60
61#endif
The QAudioDecoder class implements decoding audio.
\inmodule QtCore
Definition qobject.h:90
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:311
The QQuaternion class represents a quaternion consisting of a vector and scalar.
Definition qquaternion.h:21
QSpatialSoundPrivate(QObject *parent)
QSpatialSound::DistanceModel distanceModel
static QSpatialSoundPrivate * get(QSpatialSound *soundSource)
\inmodule QtSpatialAudio
DistanceModel
Defines how the volume of the sound scales with distance to the listener.
The QVector3D class represents a vector or vertex in 3D space.
Definition qvectornd.h:171
Combined button and popup list for selecting options.
GLenum GLuint GLintptr GLsizeiptr size
[1]