Skip to content

Instantly share code, notes, and snippets.

View pa_isstreamactive_test.cpp
#include <condition_variable>
#include <iostream>
#include <mutex>
#include <portaudio.h>
#include <thread>
bool finished = false;
std::mutex mtx;
std::condition_variable cond;
View Connection.hpp
struct Connection {
void disconnected()
{
m_connection = Disconnected();
}
void interrupted()
{
m_connection = std::visit(InterruptedEvent(*this), m_connection);
}
You can’t perform that action at this time.