This commit is contained in:
AlexandreRouma 2022-06-17 17:40:52 +02:00
parent 36adc102ee
commit c5f30f6d6a

View File

@ -42,18 +42,18 @@ namespace dsp::routing {
} }
int run() { int run() {
int count = _in->read(); int count = base_type::_in->read();
if (count < 0) { return -1; } if (count < 0) { return -1; }
for (const auto& stream : streams) { for (const auto& stream : streams) {
memcpy(stream->writeBuf, _in->readBuf, count * sizeof(T)); memcpy(stream->writeBuf, base_type::_in->readBuf, count * sizeof(T));
if (!stream->swap(count)) { if (!stream->swap(count)) {
_in->flush(); base_type::_in->flush();
return -1; return -1;
} }
} }
_in->flush(); base_type::_in->flush();
return count; return count;
} }