4#ifndef QAUDIOENGINE_WITHPLAYER_P_H
5#define QAUDIOENGINE_WITHPLAYER_P_H
18#include <QtSpatialAudio/private/qtspatialaudioglobal_p.h>
19#include <QtSpatialAudio/private/qaudioengine_p.h>
20#include <QtMultimedia/qaudiodevice.h>
30class QRtAudioEngineVoice;
47 void addSound(QAmbientSoundPrivate *sound)
override;
48 void removeSound(QAmbientSoundPrivate *sound)
override;
62 QAudioDevice m_device;
63 QAudioFormat m_format;
64 std::shared_ptr<QRtAudioEngine> m_playbackEngine;
65 std::shared_ptr<QRtAudioEngineVoice> m_engineVoice;
66 bool m_paused =
false;
68 std::map<QAmbientSoundPrivate *, SharedPlaybackState> playbackStates;
void addSound(QAmbientSoundPrivate *sound) override
bool isPaused() const override
void setSoundPlaybackData(QAmbientSoundPrivate *, SharedPlaybackState) override
void setPaused(bool paused) override
void setOutputMode(QAudioEngine::OutputMode) override
~QAudioEngineWithPlayer() override
void setOutputDevice(const QAudioDevice &device) override
QAudioDevice outputDevice() const override
QAudioEngineWithPlayer(int sampleRate)
QAudioFormat audioFormat() const
void updateRoomEffects() override
void removeSound(QAmbientSoundPrivate *sound) override
QResonanceAudioPlayer(QAudioEngineWithPlayer *player, VoiceId id)
void removeSound(SourceId)
void setOutputMode(QAudioEngine::OutputMode mode)
bool isActive() noexcept QT_MM_NONBLOCKING override
void setSoundPlaybackData(SourceId, SharedPlaybackState)
VoicePlayResult play(QSpan< float >) noexcept QT_MM_NONBLOCKING override
QRtAudioEngineVoice overrides.