muzgen/lib/Constant.cpp

27 lines
410 B
C++

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