prepare for threaded rendering?

one chip per thread.
This commit is contained in:
tildearrow 2023-09-06 04:03:53 -05:00
parent ec4063641a
commit 7d0f816d11
3 changed files with 29 additions and 9 deletions

View file

@ -39,6 +39,8 @@
#include <unordered_map>
#include <deque>
class DivWorkPool;
#define addWarning(x) \
if (warnings.empty()) { \
warnings+=x; \
@ -485,6 +487,8 @@ class DivEngine {
size_t totalProcessed;
DivWorkPool* renderPool;
// MIDI stuff
std::function<int(const TAMidiMessage&)> midiCallback=[](const TAMidiMessage&) -> int {return -2;};