4#ifndef QPIPEWIRE_AUDIOSTREAM_P_H
5#define QPIPEWIRE_AUDIOSTREAM_P_H
18#include <QtCore/qglobal.h>
19#include <QtMultimedia/qaudioformat.h>
20#include <QtMultimedia/private/qaudio_rtsan_support_p.h>
25#include <pipewire/stream.h>
49 std::optional<int32_t> hardwareBufferFrames,
const char *streamName,
65 virtual void stateChanged(pw_stream_state oldState, pw_stream_state state,
66 const char *error) = 0;
Combined button and popup list for selecting options.
StrongIdType< uint64_t, ObjectSerialTag > ObjectSerial
std::shared_ptr< ObjectRemoveObserver > SharedObjectRemoveObserver
uint64_t m_totalNumberOfFrames
std::atomic_bool m_skipNextTickDiscontinuity
void performXRunDetection(uint64_t framesPerBuffer) noexcept QT_MM_NONBLOCKING
void createStream(QSpan< spa_dict_item > extraProperties, std::optional< int32_t > hardwareBufferFrames, const char *streamName, StreamType=StreamType::Ringbuffer)
pw_stream_events stream_events
void unregisterDeviceObserver()
SharedObjectRemoveObserver m_deviceRemovalObserver
virtual void finalizeStream()=0
bool registerDeviceObserver(ObjectSerial)
virtual void processCallback()=0
QPipewireAudioStream(const QAudioFormat &)
std::atomic_int m_xrunCount
virtual void stateChanged(pw_stream_state oldState, pw_stream_state state, const char *error)=0
virtual void processRingbuffer()=0
std::shared_ptr< QPipewireAudioStream > m_self
virtual void xrunOccurred(int xrunCount)=0
void addFramesHandled(uint64_t)
bool connectStream(ObjectSerial target, spa_direction)
uint64_t m_expectedNextTick
virtual void handleDeviceRemoved()=0