diff --git a/sdl2-hyper-sonic-drivers/src/HyperSonicDrivers/drivers/PCMDriver.cpp b/sdl2-hyper-sonic-drivers/src/HyperSonicDrivers/drivers/PCMDriver.cpp index e8250868..27528fbc 100644 --- a/sdl2-hyper-sonic-drivers/src/HyperSonicDrivers/drivers/PCMDriver.cpp +++ b/sdl2-hyper-sonic-drivers/src/HyperSonicDrivers/drivers/PCMDriver.cpp @@ -1,5 +1,6 @@ #include #include +#include namespace HyperSonicDrivers::drivers { @@ -135,7 +136,8 @@ namespace HyperSonicDrivers::drivers m_PCMStreams[i] = nullptr; } } - //assert(m_PCMStreams_channels.size() == 0); + + assert(m_PCMStreams_channels.size() == 0); } inline bool PCMDriver::isPCMStreamPlaying_(const std::shared_ptr& stream) noexcept diff --git a/sdl2-hyper-sonic-drivers/src/HyperSonicDrivers/drivers/PCMDriver.hpp b/sdl2-hyper-sonic-drivers/src/HyperSonicDrivers/drivers/PCMDriver.hpp index d7b90472..e5d62912 100644 --- a/sdl2-hyper-sonic-drivers/src/HyperSonicDrivers/drivers/PCMDriver.hpp +++ b/sdl2-hyper-sonic-drivers/src/HyperSonicDrivers/drivers/PCMDriver.hpp @@ -40,7 +40,7 @@ namespace HyperSonicDrivers::drivers private: std::shared_ptr m_mixer; std::vector> m_PCMStreams; // TODO: is this still required? - std::map, int> m_PCMStreams_channels; + std::map, uint8_t> m_PCMStreams_channels; void releaseEndedStreams_() noexcept;