From dbca55e98cbb35a1ccdce5c1ec80d9c33781290b Mon Sep 17 00:00:00 2001 From: Melefo <42809472+Melefo@users.noreply.github.com> Date: Tue, 28 Jan 2020 16:59:59 +0100 Subject: [PATCH] Fixing DSP --- sources/APU/APU.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sources/APU/APU.hpp b/sources/APU/APU.hpp index af75bf3..0fa7f48 100644 --- a/sources/APU/APU.hpp +++ b/sources/APU/APU.hpp @@ -102,12 +102,19 @@ namespace ComSquare::APU }; + class DSP { + }; class APU : IMemory { private: Registers _registers; InternalRegisters _internalRegisters{}; public: + explicit APU(std::shared_ptr dsp); + + //! @brief The DSP component used to produce sound + std::shared_ptr _dsp; + //! @brief Read from the internal APU register. //! @param addr The address to read from. The address 0xF0 should refer to the first byte of the register. //! @throw InvalidAddress will be thrown if the address is more than $FF (the number of register).