mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-01-11 10:47:11 +01:00
Fixed recorder bug
This commit is contained in:
parent
06210ae825
commit
ae149b256b
@ -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);
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user