From 193bb436e97acc146be602cb16b1501c1f2f8215 Mon Sep 17 00:00:00 2001 From: Raffaello Bertini Date: Sat, 30 Sep 2023 16:47:03 +0100 Subject: [PATCH] code rev --- .../src/HyperSonicDrivers/drivers/midi/opl/OplChannel.cpp | 5 ++++- .../src/HyperSonicDrivers/drivers/midi/opl/OplChannel.hpp | 2 +- .../src/HyperSonicDrivers/drivers/midi/opl/OplDriver.cpp | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/sdl2-hyper-sonic-drivers/src/HyperSonicDrivers/drivers/midi/opl/OplChannel.cpp b/sdl2-hyper-sonic-drivers/src/HyperSonicDrivers/drivers/midi/opl/OplChannel.cpp index ba75b84d..4b309c20 100644 --- a/sdl2-hyper-sonic-drivers/src/HyperSonicDrivers/drivers/midi/opl/OplChannel.cpp +++ b/sdl2-hyper-sonic-drivers/src/HyperSonicDrivers/drivers/midi/opl/OplChannel.cpp @@ -2,5 +2,8 @@ namespace HyperSonicDrivers::drivers::midi::opl { - + OplChannel::OplChannel(const uint8_t channel) + : IMidiChannel(channel) + { + } } diff --git a/sdl2-hyper-sonic-drivers/src/HyperSonicDrivers/drivers/midi/opl/OplChannel.hpp b/sdl2-hyper-sonic-drivers/src/HyperSonicDrivers/drivers/midi/opl/OplChannel.hpp index 52c6e26d..26e5f455 100644 --- a/sdl2-hyper-sonic-drivers/src/HyperSonicDrivers/drivers/midi/opl/OplChannel.hpp +++ b/sdl2-hyper-sonic-drivers/src/HyperSonicDrivers/drivers/midi/opl/OplChannel.hpp @@ -7,6 +7,6 @@ namespace HyperSonicDrivers::drivers::midi::opl class OplChannel : public IMidiChannel { public: - OplChannel() = default; + OplChannel(const uint8_t channel); }; } diff --git a/sdl2-hyper-sonic-drivers/src/HyperSonicDrivers/drivers/midi/opl/OplDriver.cpp b/sdl2-hyper-sonic-drivers/src/HyperSonicDrivers/drivers/midi/opl/OplDriver.cpp index fd1c366c..cd18b6b3 100644 --- a/sdl2-hyper-sonic-drivers/src/HyperSonicDrivers/drivers/midi/opl/OplDriver.cpp +++ b/sdl2-hyper-sonic-drivers/src/HyperSonicDrivers/drivers/midi/opl/OplDriver.cpp @@ -2,6 +2,7 @@ #include #include #include +#include #include #include @@ -33,7 +34,7 @@ namespace HyperSonicDrivers::drivers::midi::opl m_oplWriter = std::make_unique(m_opl, m_opl3_mode); for (uint8_t i = 0; i < audio::midi::MIDI_MAX_CHANNELS; ++i) { - m_channels[i] = std::make_unique(i); + m_channels[i] = std::make_unique(i); } m_voices.resize(m_oplNumChannels);