diff --git a/firmware/baseband/proc_am_audio.hpp b/firmware/baseband/proc_am_audio.hpp index 1ab7890f3..46fbbee52 100644 --- a/firmware/baseband/proc_am_audio.hpp +++ b/firmware/baseband/proc_am_audio.hpp @@ -47,7 +47,7 @@ private: }; const buffer_s16_t work_audio_buffer { (int16_t*)dst.data(), - sizeof(*dst.data()) * dst.size() + sizeof(dst) / sizeof(int16_t) }; dsp::decimate::FIRC8xR16x24FS4Decim8 decim_0; diff --git a/firmware/baseband/proc_nfm_audio.hpp b/firmware/baseband/proc_nfm_audio.hpp index aa444c206..a4c65576f 100644 --- a/firmware/baseband/proc_nfm_audio.hpp +++ b/firmware/baseband/proc_nfm_audio.hpp @@ -46,7 +46,7 @@ private: }; const buffer_s16_t work_audio_buffer { (int16_t*)dst.data(), - sizeof(*dst.data()) * dst.size() + sizeof(dst) / sizeof(int16_t) }; dsp::decimate::FIRC8xR16x24FS4Decim8 decim_0;