summaryrefslogtreecommitdiff
path: root/src/port/audio/GameAudio.h
blob: 5626acf80be27766c88aab894e63a1c33394ab78 (plain)
1
2
3
4
5
6
7
8
9
10
#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;