diff --git a/sdl2-hyper-sonic-drivers/src/HyperSonicDrivers/hardware/IHardware.cpp b/sdl2-hyper-sonic-drivers/src/HyperSonicDrivers/hardware/IHardware.cpp index c3717d13..1533a8c8 100644 --- a/sdl2-hyper-sonic-drivers/src/HyperSonicDrivers/hardware/IHardware.cpp +++ b/sdl2-hyper-sonic-drivers/src/HyperSonicDrivers/hardware/IHardware.cpp @@ -6,12 +6,14 @@ namespace HyperSonicDrivers::hardware { IHardware::IHardware(const std::shared_ptr& mixer) : - m_mixer(mixer), m_output_rate(m_mixer->freq) + m_mixer(mixer) { if (m_mixer == nullptr) { utils::throwLogC("mixer is null"); } + + m_output_rate = m_mixer->freq; } IHardware::~IHardware()