diff --git a/firmware/baseband/proc_replay.cpp b/firmware/baseband/proc_replay.cpp index 962367ee2..787211baa 100644 --- a/firmware/baseband/proc_replay.cpp +++ b/firmware/baseband/proc_replay.cpp @@ -46,6 +46,8 @@ void ReplayProcessor::execute(const buffer_c8_t& buffer) { if (!configured || !stream) return; + buffer_c16_t iq_buffer{iq.data(), iq.size(), baseband_fs / 8}; + // File data is in C16 format, we need C8 // File samplerate is 500kHz, we're at 4MHz // iq_buffer can only be 512 C16 samples (RAM limitation) diff --git a/firmware/baseband/proc_replay.hpp b/firmware/baseband/proc_replay.hpp index e5ba71aba..f32c35f3e 100644 --- a/firmware/baseband/proc_replay.hpp +++ b/firmware/baseband/proc_replay.hpp @@ -45,10 +45,6 @@ class ReplayProcessor : public BasebandProcessor { static constexpr auto spectrum_rate_hz = 50.0f; std::array iq{}; - const buffer_c16_t iq_buffer{ - iq.data(), - iq.size(), - baseband_fs / 8}; int32_t channel_filter_low_f = 0; int32_t channel_filter_high_f = 0;