4#ifndef QAUDIOENGINE_P_H
5#define QAUDIOENGINE_P_H
18#include <QtSpatialAudio/qaudioengine.h>
19#include <QtSpatialAudio/private/qtspatialaudioglobal_p.h>
20#include <QtMultimedia/qaudiodevice.h>
21#include <QtCore/qthread.h>
22#include <QtCore/qtclasshelpermacros.h>
23#include <QtCore/qmutex.h>
void setPaused(bool paused)
std::unique_ptr< QAudioOutputStream > outputStream
bool listenerPositionDirty
void addRoom(QAudioRoom *room)
std::unique_ptr< vraudio::ResonanceAudio > resonanceAudio
void addStereoSound(QAmbientSound *sound)
QAtomicInteger< bool > paused
QVector3D listenerPosition() const
void removeRoom(QAudioRoom *room)
void addSpatialSound(QSpatialSound *sound)
void setOutputMode(QAudioEngine::OutputMode)
QAudioEngine::OutputMode outputMode
static QAudioEnginePrivate * get(QAudioEngine *engine)
QList< QAmbientSound * > stereoSources
QList< QSpatialSound * > sources
void removeStereoSound(QAmbientSound *sound)
void removeSpatialSound(QSpatialSound *sound)
QList< QAudioRoom * > rooms
QAudioEnginePrivate(QAudioEngine *)
QAudioListener * listener
static constexpr int bufferSize
void setOutputDevice(const QAudioDevice &device)
void setPaused(bool paused)
QAudioOutputStream(QAudioEnginePrivate *d)
qint64 readData(char *data, qint64 len) override
Reads up to maxSize bytes from the device into data, and returns the number of bytes read or -1 if an...
bool atEnd() const override
Returns true if the current read and write position is at the end of the device (i....
~QAudioOutputStream() override
qint64 pos() const override
For random-access devices, this function returns the position that data is written to or read from.
bool isSequential() const override
Returns true if this device is sequential; otherwise returns false.
qint64 bytesAvailable() const override
Returns the number of bytes that are available for reading.
qint64 writeData(const char *, qint64) override
Writes up to maxSize bytes from data to the device.
qint64 size() const override
For open random-access devices, this function returns the size of the device.
QT_BEGIN_NAMESPACE const int bufferTimeMs