Run dummy loop when PulseAudio fails connection
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
#ifdef LMMS_HAVE_PULSEAUDIO
|
||||
|
||||
#include <pulse/pulseaudio.h>
|
||||
#include <QSemaphore>
|
||||
#include <QThread>
|
||||
|
||||
#include "AudioDevice.h"
|
||||
@@ -71,6 +72,8 @@ public:
|
||||
|
||||
void streamWriteCallback( pa_stream * s, size_t length );
|
||||
|
||||
void signalConnected( bool connected );
|
||||
|
||||
pa_stream * m_s;
|
||||
pa_sample_spec m_sampleSpec;
|
||||
|
||||
@@ -85,6 +88,9 @@ private:
|
||||
|
||||
bool m_convertEndian;
|
||||
|
||||
bool m_connected;
|
||||
QSemaphore m_connectedSemaphore;
|
||||
|
||||
} ;
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user