From 6ac9bf9e6cc729387bd5ebe6f1817db4c73fc0ff Mon Sep 17 00:00:00 2001 From: ve2dje <73487390+ve2dje@users.noreply.github.com> Date: Fri, 5 Mar 2021 11:31:39 -0500 Subject: [PATCH] Update FMNetwork.cpp Correct typo compiling error --- FMNetwork.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FMNetwork.cpp b/FMNetwork.cpp index 146bcb7..593ae8b 100644 --- a/FMNetwork.cpp +++ b/FMNetwork.cpp @@ -213,7 +213,7 @@ unsigned int CFMNetwork::read(float* data, unsigned int nSamples) for (unsigned int i = 0U; i < nSamples; i++) { unsigned short val = ((buffer[i * 2U + 0U] & 0xFFU) << 0) + // Changing audio format from U16BE to S16LE ((buffer[i * 2U + 1U] & 0xFFU) << 8); // Changing audio format from U16BE to S16LE - in[i] = (float(val) / 65536.0F; // Changing audio format from U16BE to S16LE + in[i] = (float(val) / 65536.0F); // Changing audio format from U16BE to S16LE } src.data_in = in; @@ -235,7 +235,7 @@ unsigned int CFMNetwork::read(float* data, unsigned int nSamples) for (unsigned int i = 0U; i < nSamples; i++) { unsigned short val = ((buffer[i * 2U + 0U] & 0xFFU) << 0) + // Changing audio format from U16BE to S16LE ((buffer[i * 2U + 1U] & 0xFFU) << 8); // Changing audio format from U16BE to S16LE - data[i] = (float(val) ) / 65536.0F; // Changing audio format from U16BE to S16LE + data[i] = (float(val) / 65536.0F); // Changing audio format from U16BE to S16LE } return nSamples;