From 8bca988b550b35aa8f437aedefd42f6d801e189a Mon Sep 17 00:00:00 2001 From: wheremyfoodat <44909372+wheremyfoodat@users.noreply.github.com> Date: Fri, 23 Feb 2024 23:49:56 +0000 Subject: [PATCH] Fix compilation errors --- include/audio/dsp_core.hpp | 1 + include/audio/null_core.hpp | 1 + include/audio/teakra_core.hpp | 1 + 3 files changed, 3 insertions(+) diff --git a/include/audio/dsp_core.hpp b/include/audio/dsp_core.hpp index 3f1768ff..ec73536e 100644 --- a/include/audio/dsp_core.hpp +++ b/include/audio/dsp_core.hpp @@ -33,6 +33,7 @@ namespace Audio { public: enum class Type { Null, Teakra }; DSPCore(Memory& mem, Scheduler& scheduler, DSPService& dspService) : mem(mem), scheduler(scheduler), dspService(dspService) {} + virtual ~DSPCore() {} virtual void reset() = 0; virtual void runAudioFrame() = 0; diff --git a/include/audio/null_core.hpp b/include/audio/null_core.hpp index 136a76ac..7d6f1c9e 100644 --- a/include/audio/null_core.hpp +++ b/include/audio/null_core.hpp @@ -24,6 +24,7 @@ namespace Audio { public: NullDSP(Memory& mem, Scheduler& scheduler, DSPService& dspService) : DSPCore(mem, scheduler, dspService) {} + ~NullDSP() override {} void reset() override; void runAudioFrame() override; diff --git a/include/audio/teakra_core.hpp b/include/audio/teakra_core.hpp index 57db0e4a..a6311f90 100644 --- a/include/audio/teakra_core.hpp +++ b/include/audio/teakra_core.hpp @@ -75,6 +75,7 @@ namespace Audio { public: TeakraDSP(Memory& mem, Scheduler& scheduler, DSPService& dspService); + ~TeakraDSP() override {} void reset() override;