sample editor workkkkkkk

This commit is contained in:
tildearrow 2022-03-19 03:42:44 -05:00
parent c59c176de2
commit 689ed3bf65
9 changed files with 221 additions and 7 deletions

View file

@ -19,6 +19,7 @@
#include "dataErrors.h"
#include "song.h"
#include <functional>
#define _USE_MATH_DEFINES
#include "engine.h"
#include "instrument.h"
@ -2275,6 +2276,12 @@ bool DivEngine::switchMaster() {
return true;
}
void DivEngine::synchronized(const std::function<void()>& what) {
isBusy.lock();
what();
isBusy.unlock();
}
TAAudioDesc& DivEngine::getAudioDescWant() {
return want;
}