4#ifndef QPIPEWIRE_INSTANCE_P_H
5#define QPIPEWIRE_INSTANCE_P_H
18#include <QtCore/qglobal.h>
19#include <QtCore/qloggingcategory.h>
21#include <pipewire/pipewire.h>
static std::shared_ptr< QPipeWireInstance > instance()
Combined button and popup list for selecting options.
StrongIdType< uint64_t, ObjectSerialTag > ObjectSerial
std::shared_ptr< ObjectRemoveObserver > SharedObjectRemoveObserver
Q_DECLARE_LOGGING_CATEGORY(lcPipewire)
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