Commit 3aa3075f authored by Tristan Matthews's avatar Tristan Matthews

* #18668: pulse: use usleep instead of ost::Thread::sleep

parent 24842953
......@@ -38,7 +38,6 @@
#include "audio/dcblocker.h"
#include "logger.h"
#include "manager.h"
#include "cc_thread.h"
#include <cstdlib>
#include <fstream>
......@@ -252,7 +251,7 @@ std::string PulseLayer::getAudioDeviceName(int index, PCMType type) const
void PulseLayer::createStreams(pa_context* c)
{
while (enumeratingSinks_ or enumeratingSources_)
ost::Thread::sleep(20 /* ms */);
usleep(20000); // 20 ms
std::string playbackDevice(preference_.getPulseDevicePlayback());
std::string captureDevice(preference_.getPulseDeviceRecord());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment