Skip to content

Commit

Permalink
code rev
Browse files Browse the repository at this point in the history
  • Loading branch information
Raffaello committed Nov 12, 2023
1 parent a10b0c4 commit 321203e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@
namespace HyperSonicDrivers::hardware
{
IHardware::IHardware(const std::shared_ptr<audio::IMixer>& mixer) :
m_mixer(mixer), m_output_rate(m_mixer->freq)
m_mixer(mixer)
{
if (m_mixer == nullptr)
{
utils::throwLogC<std::runtime_error>("mixer is null");
}

m_output_rate = m_mixer->freq;
}

IHardware::~IHardware()
Expand Down

0 comments on commit 321203e

Please sign in to comment.