From b03da8d6931288721feb9c33e0d0111abb586b54 Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Sun, 3 Jan 2016 22:42:40 -0800 Subject: [PATCH] Fix calculation of work_audio_buffer item count. --- firmware/baseband/proc_am_audio.hpp | 2 +- firmware/baseband/proc_nfm_audio.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;