Added persistent recorder volume

This commit is contained in:
AlexandreRouma
2021-11-23 22:35:09 +01:00
parent fc7d902c1d
commit e394b64ad3
2 changed files with 11 additions and 1 deletions

View File

@ -288,6 +288,7 @@ namespace dsp {
void init(stream<T>* in, float volume) {
_in = in;
_volume = volume;
level = powf(_volume, 2);
generic_block<Volume<T>>::registerInput(_in);
generic_block<Volume<T>>::registerOutput(&out);
generic_block<Volume<T>>::_block_init = true;