29 impulseResponse(impulseResponse),
30 values(impulseResponse.size(), 0.0f),
32 size(impulseResponse.size())
39 this->impulseResponse = impulseResponse;
41 this->size = impulseResponse.size();
42 this->values = std::vector<float>(size, 0);
48 index = (index + size - 1) % size;
49 values.at(index) =
value;
51 for (
size_t i = 0; i < size; i++)
53 response += values.at((i + index) % size) * impulseResponse.at(i);