Fixed small bug in waterfall

This commit is contained in:
AlexandreRouma
2020-11-04 05:08:42 +01:00
parent ef968ac1fb
commit 0a5fd5c271
3 changed files with 48 additions and 46 deletions

View File

@ -98,6 +98,7 @@ namespace dsp {
generic_block<Reshaper<T>>::tempStop();
generic_block<Reshaper<T>>::unregisterInput(_in);
_keep = keep;
ringBuf.setMaxLatency(keep * 2);
generic_block<Reshaper<T>>::registerInput(_in);
generic_block<Reshaper<T>>::tempStart();
}
@ -116,6 +117,7 @@ namespace dsp {
if (count < 0) { return -1; }
ringBuf.write(_in->data, count);
_in->flush();
return count;
}
stream<T> out;