Check if enough alsa frames are available

This commit is contained in:
badaix 2020-05-07 22:01:04 +02:00
parent 57aa683f93
commit 2c7cbc0d75
4 changed files with 30 additions and 28 deletions

View file

@ -41,15 +41,6 @@ public:
return val;
}
T front()
{
std::unique_lock<std::mutex> mlock(mutex_);
while (queue_.empty())
cond_.wait(mlock);
return queue_.front();
}
void abort_wait()
{
{