From c826a87a881316618dc0969e4a3c033c423c1809 Mon Sep 17 00:00:00 2001 From: Dave Behnke <916775+dbehnke@users.noreply.github.com> Date: Mon, 29 Dec 2025 00:10:36 -0500 Subject: [PATCH] feat: Add debug amplitude logging --- reflector/CodecStream.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/reflector/CodecStream.cpp b/reflector/CodecStream.cpp index 6b4d8f6..9802c12 100644 --- a/reflector/CodecStream.cpp +++ b/reflector/CodecStream.cpp @@ -164,6 +164,12 @@ void CCodecStream::Task(void) // Write audio to recorder if active if (m_Recorder.IsRecording()) { + // DEBUG: Print max amplitude to verify data + int16_t max_amp = 0; + for(int i=0; i<160; i++) { + if(std::abs(pack.usrp[i]) > max_amp) max_amp = std::abs(pack.usrp[i]); + } + std::cout << "DEBUG: CodecStream Writing 160 samples. MaxAmp=" << max_amp << std::endl; m_Recorder.Write(pack.usrp, 160); }