#include "Add.hpp" namespace muz { /*explicit*/ Add::Add(AudioConf const& conf, std::unique_ptr lhs, std::unique_ptr rhs) : m_conf { conf } , m_out_left { std::vector(m_conf.channels(), 0.0f) } , m_out_right { std::vector(m_conf.channels(), 0.0f) } , m_lhs { std::move(lhs) } , m_rhs { std::move(rhs) } { } /*virtual*/ Add::~Add() { } void Add::next(std::vector& out) /*override*/ { m_lhs->next(m_out_left); m_rhs->next(m_out_right); assert(m_out_left.size() == m_out_right.size()); assert(m_out_left.size() == static_cast(m_conf.channels())); for (int i=0; i