4#ifndef QPULSEAUDIOENGINE_H
5#define QPULSEAUDIOENGINE_H
18#include <QtCore/qmap.h>
19#include <QtCore/qbytearray.h>
20#include <QtCore/qreadwritelock.h>
21#include <pulse/pulseaudio.h>
36 pa_threaded_mainloop *
mainloop() {
return m_mainLoop; }
37 pa_context *
context() {
return m_context; }
42 pa_threaded_mainloop_lock(m_mainLoop);
48 pa_threaded_mainloop_unlock(m_mainLoop);
51 inline void wait(pa_operation *op)
53 while (m_mainLoop && pa_operation_get_state(op) == PA_OPERATION_RUNNING)
54 pa_threaded_mainloop_wait(m_mainLoop);
67 void onContextFailed();
85 pa_mainloop_api *m_mainLoopApi;
86 pa_threaded_mainloop *m_mainLoop;
87 pa_context *m_context;
Mode
Describes the mode of this device.
QObject * parent() const
Returns a pointer to the parent object.
QReadWriteLock m_sinkLock
QMap< int, QAudioDevice > m_sinks
static QPulseAudioEngine * instance()
pa_threaded_mainloop * mainloop()
QByteArray defaultDevice(QAudioDevice::Mode mode) const
void audioOutputsChanged()
QByteArray m_defaultSource
QMap< int, QAudioDevice > m_sources
void wait(pa_operation *op)
QList< QAudioDevice > availableDevices(QAudioDevice::Mode mode) const
QReadWriteLock m_sourceLock
void audioInputsChanged()
QReadWriteLock m_serverLock
Combined button and popup list for selecting options.