mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-02-04 13:54:43 +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) {
|
void init(stream<stereo_t>* in, double volume, bool muted) {
|
||||||
_volume = powf(volume, 2);
|
_volume = powf(volume, 2);
|
||||||
|
_muted = muted;
|
||||||
level = { -150.0f, -150.0f };
|
level = { -150.0f, -150.0f };
|
||||||
base_type::init(in);
|
base_type::init(in);
|
||||||
}
|
}
|
||||||
|
@ -21,8 +21,8 @@ namespace dsp::routing {
|
|||||||
|
|
||||||
// Add to the list
|
// Add to the list
|
||||||
base_type::tempStop();
|
base_type::tempStop();
|
||||||
streams.push_back(stream);
|
|
||||||
base_type::registerOutput(stream);
|
base_type::registerOutput(stream);
|
||||||
|
streams.push_back(stream);
|
||||||
base_type::tempStart();
|
base_type::tempStart();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -38,8 +38,8 @@ namespace dsp::routing {
|
|||||||
|
|
||||||
// Add to the list
|
// Add to the list
|
||||||
base_type::tempStop();
|
base_type::tempStop();
|
||||||
base_type::unregisterOutput(stream);
|
|
||||||
streams.erase(sit);
|
streams.erase(sit);
|
||||||
|
base_type::unregisterOutput(stream);
|
||||||
base_type::tempStart();
|
base_type::tempStart();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user