![]() |
Qt 6.x
The Qt SDK
|
#include <qaudioengine_p.h>
Collaboration diagram for QAudioEnginePrivate:Public Member Functions | |
| QAudioEnginePrivate () | |
| ~QAudioEnginePrivate () | |
| void | addSpatialSound (QSpatialSound *sound) |
| void | removeSpatialSound (QSpatialSound *sound) |
| void | addStereoSound (QAmbientSound *sound) |
| void | removeStereoSound (QAmbientSound *sound) |
| void | addRoom (QAudioRoom *room) |
| void | removeRoom (QAudioRoom *room) |
| void | updateRooms () |
| QVector3D | listenerPosition () const |
Static Public Member Functions | |
| static QAudioEnginePrivate * | get (QAudioEngine *engine) |
Public Attributes | |
| vraudio::ResonanceAudio * | resonanceAudio = nullptr |
| int | sampleRate = 44100 |
| float | masterVolume = 1. |
| QAudioEngine::OutputMode | outputMode = QAudioEngine::Surround |
| bool | roomEffectsEnabled = true |
| float | distanceScale = 0.01f |
| QMutex | mutex |
| QAudioDevice | device |
| QAtomicInteger< bool > | paused = false |
| QThread | audioThread |
| std::unique_ptr< QAudioOutputStream > | outputStream |
| std::unique_ptr< QAmbisonicDecoder > | ambisonicDecoder |
| QAudioListener * | listener = nullptr |
| QList< QSpatialSound * > | sources |
| QList< QAmbientSound * > | stereoSources |
| QList< QAudioRoom * > | rooms |
| bool | listenerPositionDirty = true |
| QAudioRoom * | currentRoom = nullptr |
Static Public Attributes | |
| static constexpr int | bufferSize = 128 |
Definition at line 44 of file qaudioengine_p.h.
| QAudioEnginePrivate::QAudioEnginePrivate | ( | ) |
Definition at line 154 of file qaudioengine.cpp.
References audioThread, QMediaDevices::defaultAudioOutput, device, QThread::setPriority(), and QThread::TimeCriticalPriority.
Here is the call graph for this function:| QAudioEnginePrivate::~QAudioEnginePrivate | ( | ) |
Definition at line 160 of file qaudioengine.cpp.
References resonanceAudio.
| void QAudioEnginePrivate::addRoom | ( | QAudioRoom * | room | ) |
Definition at line 199 of file qaudioengine.cpp.
References QList< T >::append(), and rooms.
Here is the call graph for this function:| void QAudioEnginePrivate::addSpatialSound | ( | QSpatialSound * | sound | ) |
Definition at line 165 of file qaudioengine.cpp.
References vraudio::ResonanceAudio::api, QAmbientSoundPrivate::get(), resonanceAudio, and QAmbientSoundPrivate::sourceId.
Here is the call graph for this function:| void QAudioEnginePrivate::addStereoSound | ( | QAmbientSound * | sound | ) |
Definition at line 182 of file qaudioengine.cpp.
References vraudio::ResonanceAudio::api, QList< T >::append(), QAmbientSoundPrivate::get(), resonanceAudio, QAmbientSoundPrivate::sourceId, and stereoSources.
Here is the call graph for this function:
|
inlinestatic |
Definition at line 47 of file qaudioengine_p.h.
References engine.
Referenced by QAudioRoom::QAudioRoom(), QAudioRoom::~QAudioRoom(), QAudioRoom::dimensions(), QSpatialSound::distanceCutoff(), QAmbientSoundPrivate::load(), QAudioListener::position(), QAudioRoom::position(), QSpatialSound::position(), QAudioRoom::setDimensions(), QSpatialSound::setDirectivity(), QSpatialSound::setDirectivityOrder(), QSpatialSound::setDistanceCutoff(), QSpatialSound::setManualAttenuation(), QSpatialSound::setNearFieldGain(), QSpatialSound::setOcclusionIntensity(), QAudioListener::setPosition(), QAudioRoom::setPosition(), QSpatialSound::setPosition(), QAudioListener::setRotation(), QSpatialSound::setRotation(), QSpatialSound::setSize(), QAmbientSound::setVolume(), QSpatialSound::setVolume(), QSpatialSound::size(), QSpatialSoundPrivate::updateDistanceModel(), and QSpatialSoundPrivate::updateRoomEffects().
Here is the caller graph for this function:| QVector3D QAudioEnginePrivate::listenerPosition | ( | ) | const |
Definition at line 276 of file qaudioengine.cpp.
References listener, and QAudioListener::position().
Referenced by updateRooms().
Here is the call graph for this function:
Here is the caller graph for this function:| void QAudioEnginePrivate::removeRoom | ( | QAudioRoom * | room | ) |
Definition at line 204 of file qaudioengine.cpp.
References QList< T >::removeOne(), and rooms.
Here is the call graph for this function:| void QAudioEnginePrivate::removeSpatialSound | ( | QSpatialSound * | sound | ) |
Definition at line 173 of file qaudioengine.cpp.
References vraudio::ResonanceAudio::api, QAmbientSoundPrivate::get(), resonanceAudio, and QAmbientSoundPrivate::sourceId.
Here is the call graph for this function:| void QAudioEnginePrivate::removeStereoSound | ( | QAmbientSound * | sound | ) |
Definition at line 190 of file qaudioengine.cpp.
References vraudio::ResonanceAudio::api, QAmbientSoundPrivate::get(), QList< T >::removeOne(), resonanceAudio, QAmbientSoundPrivate::sourceId, and stereoSources.
Here is the call graph for this function:| void QAudioEnginePrivate::updateRooms | ( | ) |
Definition at line 209 of file qaudioengine.cpp.
References vraudio::ResonanceAudio::api, currentRoom, dist(), QAudioRoomPrivate::get(), QSpatialSoundPrivate::get(), listenerPosition(), listenerPositionDirty, qAbs(), qInf(), rd, QAudioRoomPrivate::reflections, resonanceAudio, QAudioRoomPrivate::reverb, roomEffectsEnabled, rooms, sp, QVector3D::x(), QVector3D::y(), and QVector3D::z().
Referenced by QAudioOutputStream::readData().
Here is the call graph for this function:
Here is the caller graph for this function:| std::unique_ptr<QAmbisonicDecoder> QAudioEnginePrivate::ambisonicDecoder |
Definition at line 70 of file qaudioengine_p.h.
Referenced by QAudioOutputStream::readData(), QAudioOutputStream::startOutput(), and QAudioOutputStream::stopOutput().
| QThread QAudioEnginePrivate::audioThread |
Definition at line 68 of file qaudioengine_p.h.
Referenced by QAudioEnginePrivate(), QAudioEngine::start(), and QAudioEngine::stop().
|
staticconstexpr |
Definition at line 49 of file qaudioengine_p.h.
Referenced by QAudioEngine::QAudioEngine(), and QAudioOutputStream::readData().
| QAudioRoom* QAudioEnginePrivate::currentRoom = nullptr |
Definition at line 77 of file qaudioengine_p.h.
Referenced by updateRooms().
| QAudioDevice QAudioEnginePrivate::device |
Definition at line 65 of file qaudioengine_p.h.
Referenced by QAudioEnginePrivate(), QAudioEngine::outputDevice(), QAudioEngine::setOutputDevice(), and QAudioOutputStream::startOutput().
| float QAudioEnginePrivate::distanceScale = 0.01f |
Definition at line 62 of file qaudioengine_p.h.
Referenced by QAudioEngine::distanceScale(), and QAudioEngine::setDistanceScale().
| QAudioListener* QAudioEnginePrivate::listener = nullptr |
Definition at line 72 of file qaudioengine_p.h.
Referenced by listenerPosition().
|
mutable |
Definition at line 76 of file qaudioengine_p.h.
Referenced by updateRooms().
| float QAudioEnginePrivate::masterVolume = 1. |
Definition at line 55 of file qaudioengine_p.h.
Referenced by QAudioEngine::masterVolume(), QAudioEngine::setMasterVolume(), and QAudioEngine::start().
| QMutex QAudioEnginePrivate::mutex |
Definition at line 64 of file qaudioengine_p.h.
Referenced by QAudioOutputStream::startOutput().
| QAudioEngine::OutputMode QAudioEnginePrivate::outputMode = QAudioEngine::Surround |
Definition at line 56 of file qaudioengine_p.h.
Referenced by QAudioEngine::outputMode(), QAudioOutputStream::readData(), QAudioEngine::setOutputMode(), QAudioEngine::start(), and QAudioOutputStream::startOutput().
| std::unique_ptr<QAudioOutputStream> QAudioEnginePrivate::outputStream |
Definition at line 69 of file qaudioengine_p.h.
Referenced by QAudioEngine::setOutputMode(), QAudioEngine::setPaused(), QAudioEngine::start(), and QAudioEngine::stop().
| QAtomicInteger<bool> QAudioEnginePrivate::paused = false |
Definition at line 66 of file qaudioengine_p.h.
Referenced by QAudioEngine::paused(), QAudioOutputStream::readData(), and QAudioEngine::setPaused().
| vraudio::ResonanceAudio* QAudioEnginePrivate::resonanceAudio = nullptr |
Definition at line 53 of file qaudioengine_p.h.
Referenced by QAudioEngine::QAudioEngine(), ~QAudioEnginePrivate(), addSpatialSound(), addStereoSound(), QAudioOutputStream::readData(), removeSpatialSound(), removeStereoSound(), QAudioEngine::setMasterVolume(), QAudioEngine::setOutputDevice(), QAudioEngine::setOutputMode(), QAudioEngine::setRoomEffectsEnabled(), QAudioEngine::start(), QAudioEngine::stop(), and updateRooms().
| bool QAudioEnginePrivate::roomEffectsEnabled = true |
Definition at line 57 of file qaudioengine_p.h.
Referenced by QAudioEngine::roomEffectsEnabled(), QAudioEngine::setRoomEffectsEnabled(), and updateRooms().
| QList<QAudioRoom *> QAudioEnginePrivate::rooms |
Definition at line 75 of file qaudioengine_p.h.
Referenced by addRoom(), removeRoom(), and updateRooms().
| int QAudioEnginePrivate::sampleRate = 44100 |
Definition at line 54 of file qaudioengine_p.h.
Referenced by QAudioEngine::QAudioEngine(), QAudioEngine::sampleRate(), and QAudioOutputStream::startOutput().
| QList<QSpatialSound *> QAudioEnginePrivate::sources |
Definition at line 73 of file qaudioengine_p.h.
Referenced by QAudioOutputStream::readData().
| QList<QAmbientSound *> QAudioEnginePrivate::stereoSources |
Definition at line 74 of file qaudioengine_p.h.
Referenced by addStereoSound(), QAudioOutputStream::readData(), and removeStereoSound().