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
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 <qambientsound_p.h>
20#include <qaudioengine_p.h>
21#include <qurl.h>
22#include <qvector3d.h>
23#include <qquaternion.h>
24#include <qaudiobuffer.h>
25#include <qaudiodevice.h>
26#include <qmutex.h>
27
29
30class QAudioDecoder;
32
34{
35public:
39
41 { return soundSource ? soundSource->d : nullptr; }
42
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
61
62#endif
The QAudioDecoder class implements decoding audio.
\inmodule QtCore
Definition qobject.h:103
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:346
The QQuaternion class represents a quaternion consisting of a vector and scalar.
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]