Add audio enable and vsync settings

This commit is contained in:
wheremyfoodat 2024-02-23 22:31:45 +02:00
parent e0c1d4511b
commit 8cba0405b9
12 changed files with 102 additions and 22 deletions

View file

@ -32,6 +32,7 @@ namespace Audio {
DSPService& dspService;
Samples sampleBuffer;
bool audioEnabled = false;
MAKE_LOG_FUNCTION(log, dspLogger)
@ -55,7 +56,9 @@ namespace Audio {
static Audio::DSPCore::Type typeFromString(std::string inString);
static const char* typeToString(Audio::DSPCore::Type type);
Samples& getSamples() { return sampleBuffer; }
virtual void setAudioEnabled(bool enable) { audioEnabled = enable; }
};
std::unique_ptr<DSPCore> makeDSPCore(DSPCore::Type type, Memory& mem, Scheduler& scheduler, DSPService& dspService);