4#ifndef QAAUDIOSTREAM_P_H
5#define QAAUDIOSTREAM_P_H
18#include <QtMultimedia/qaudioformat.h>
20#include <aaudio/AAudio.h>
26Q_DECLARE_LOGGING_CATEGORY(qLcAAudioStream)
48 aaudio_result_t waitForTargetState(aaudio_stream_state_t targetState);
50 template <
typename Functor>
51 aaudio_result_t requestWithExpectedState(Functor &&request, aaudio_stream_state_t expected);
54 AAudioStream *m_stream{
nullptr };
55 bool m_areStreamParametersRespected{
false };
87 AAudioStreamBuilder *m_builder{
nullptr };
constexpr int bufferSizeInBursts
void setMMapPolicy(int policy)
static aaudio_format_t aaudioFormat(const QAudioFormat::SampleFormat sampleFormat)
constexpr std::chrono::nanoseconds stateChangeTimeout
StreamBuilder(QAudioFormat format)
StreamParameterSet params
AAudioStream_errorCallback errorCallback
AAudioStream_dataCallback callback
aaudio_content_type_t outputContentType
aaudio_usage_t outputUsage
aaudio_input_preset_t inputPreset
aaudio_direction_t direction
aaudio_sharing_mode_t sharingMode
Stream(const StreamBuilder &builder)
bool areStreamParametersRespected() const