Fixed recorder bug

This commit is contained in:
AlexandreRouma 2022-07-07 20:07:13 +02:00
parent 06210ae825
commit ae149b256b
2 changed files with 3 additions and 2 deletions

View File

@ -12,6 +12,7 @@ namespace dsp::audio {
void init(stream<stereo_t>* in, double volume, bool muted) {
_volume = powf(volume, 2);
_muted = muted;
level = { -150.0f, -150.0f };
base_type::init(in);
}

View File

@ -21,8 +21,8 @@ namespace dsp::routing {
// Add to the list
base_type::tempStop();
streams.push_back(stream);
base_type::registerOutput(stream);
streams.push_back(stream);
base_type::tempStart();
}
@ -38,8 +38,8 @@ namespace dsp::routing {
// Add to the list
base_type::tempStop();
base_type::unregisterOutput(stream);
streams.erase(sit);
base_type::unregisterOutput(stream);
base_type::tempStart();
}