4#ifndef QAUDIOENGINE_THREADED_P_H
5#define QAUDIOENGINE_THREADED_P_H
18#include <QtMultimedia/qaudiodevice.h>
19#include <QtSpatialAudio/private/qtspatialaudioglobal_p.h>
20#include <QtSpatialAudio/private/qaudioengine_p.h>
21#include <QtCore/qmutex.h>
22#include <QtCore/qthread.h>
32class QAudioOutputStream;
54 void addSound(QAmbientSoundPrivate *)
override;
66 QAudioDevice m_device;
67 QAtomicInteger<
bool> m_paused =
false;
70 std::unique_ptr<QAudioOutputStream> outputStream;
72 std::map<QAmbientSoundPrivate *, SharedPlaybackState> playbackStates;
QAudioDevice outputDevice() const override
void setSoundPlaybackData(QAmbientSoundPrivate *, SharedPlaybackState) override
std::shared_ptr< QSpatialAudioPrivate::QSpatialAudioPlaybackState > SharedPlaybackState
void updateRoomEffects() override
void setPaused(bool paused) override
void setOutputDevice(const QAudioDevice &device) override
QAudioEngineThreaded(int sampleRate)
bool isPaused() const override
void addSound(QAmbientSoundPrivate *) override
void removeSound(QAmbientSoundPrivate *) override
void setPaused(bool paused)
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.
QAudioOutputStream(QAudioEngineThreaded *d)
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.
Combined button and popup list for selecting options.
static constexpr std::array< float, 2 *QAudioEngineThreaded::framesPerBuffer > nullBuffer
QT_BEGIN_NAMESPACE const int bufferTimeMs