mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2026-04-19 14:52:43 +00:00
maybe macOS fixes and other
This commit is contained in:
@@ -14,7 +14,12 @@ namespace dsp::correction {
|
||||
|
||||
void init(stream<T>* in, double rate) {
|
||||
_rate = rate;
|
||||
reset();
|
||||
if constexpr (std::is_same_v<T, float>) {
|
||||
offset = 0.0f;
|
||||
}
|
||||
if constexpr (std::is_same_v<T, complex_t> || std::is_same_v<T, stereo_t>) {
|
||||
offset = { 0.0f, 0.0f };
|
||||
}
|
||||
base_type::init(in);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user