summaryrefslogtreecommitdiff
path: root/src/audio/GameAudio.h
blob: 1135576f35dea9c885bed727aaf15adcb4e8dfdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#pragma once

#include <thread>
#include <condition_variable>

static struct {
    std::thread thread;
    std::condition_variable cv_to_thread, cv_from_thread;
    std::mutex mutex;
    bool running;
    bool processing;
} audio;