2024-01-30 18:09:57 +00:00
|
|
|
#include "Constant.hpp"
|
|
|
|
|
|
|
|
namespace muz
|
|
|
|
{
|
|
|
|
/*explicit*/ Constant::Constant(AudioConf const& conf, float value)
|
|
|
|
: m_conf { conf }
|
|
|
|
, m_value { value }
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/*virtual*/ Constant::~Constant()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2024-02-01 03:15:07 +00:00
|
|
|
void Constant::next(std::vector<float>& out) /*override*/
|
2024-01-30 18:09:57 +00:00
|
|
|
{
|
|
|
|
for (int i=0; i<m_conf.channels(); i++)
|
|
|
|
{
|
2024-02-01 03:15:07 +00:00
|
|
|
out[i] = m_value;
|
2024-01-30 18:09:57 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|