2022-05-12 13:28:24 -04:00
|
|
|
#pragma once
|
2022-11-14 05:22:34 -05:00
|
|
|
#include <thread>
|
|
|
|
#include <condition_variable>
|
2022-05-12 13:28:24 -04:00
|
|
|
|
|
|
|
static struct {
|
2022-08-02 20:30:39 -04:00
|
|
|
std::thread thread;
|
2022-05-12 13:28:24 -04:00
|
|
|
std::condition_variable cv_to_thread, cv_from_thread;
|
|
|
|
std::mutex mutex;
|
2022-08-02 20:30:39 -04:00
|
|
|
bool running;
|
2022-05-12 13:28:24 -04:00
|
|
|
bool processing;
|
|
|
|
} audio;
|