muzgen/lib/Constant.cpp

23 lines
367 B
C++

#include "Constant.hpp"
namespace muz
{
/*explicit*/ Constant::Constant(AudioConf const& conf, float value)
: m_conf { conf }
, m_value { value }
{
}
/*virtual*/ Constant::~Constant()
{
}
void Constant::next(std::vector<float>& out) /*override*/
{
for (int i=0; i<m_conf.channels(); i++)
{
out[i] = m_value;
}
}
}