From 8b56192418bb5262054f12d53969555d47072e44 Mon Sep 17 00:00:00 2001 From: "Christian R. Helmrich" Date: Wed, 28 Oct 2020 11:00:00 +0100 Subject: [PATCH] fix note print-out --- src/app/exhaleApp.cpp | 4 ++-- src/app/exhaleAppPch.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/exhaleApp.cpp b/src/app/exhaleApp.cpp index 54c24ec..05de8b0 100644 --- a/src/app/exhaleApp.cpp +++ b/src/app/exhaleApp.cpp @@ -444,7 +444,7 @@ int main (const int argc, char* argv[]) return 16384; // preset isn't supported } - const unsigned frameLength = (3 + coreSbrFrameLengthIndex) << 8; + const unsigned frameLength = (3 + coreSbrFrameLengthIndex) << 8; // dec. output const unsigned startLength = (frameLength * 25) >> 4; // encoder PCM look-ahead if (readStdin) // configure stdin @@ -566,7 +566,7 @@ int main (const int argc, char* argv[]) goto mainFinish; // ask for resampling } - if (wavReader.getSampleRate () > 32000 && variableCoreBitRateMode == 1) + if (wavReader.getSampleRate () > 32000 && variableCoreBitRateMode <= 1) { #if ENABLE_RESAMPLING if (wavReader.getSampleRate () == 48000) diff --git a/src/app/exhaleAppPch.cpp b/src/app/exhaleAppPch.cpp index acca4c3..65b8a9e 100644 --- a/src/app/exhaleAppPch.cpp +++ b/src/app/exhaleAppPch.cpp @@ -12,14 +12,14 @@ // ISO/IEC 23003-3 USAC Table 67 static const unsigned supportedSamplingRates[16] = { - 96000, 88200, 64000, 48000, 44100, 32000, 24000, 22050, 16000, 12000, 11025, 8000, 7350, // AAC + 96000, 88200, 64000, 48000, 44100, 32000, 24000, 22050, 16000, 12000, 11025, 8000, 7350, // AAC 57600, 38400, 19200 // BL USAC }; // public sampling rate function bool isSamplingRateSupported (const unsigned samplingRate) { - for (unsigned i = 0; i < 16; i++) + for (uint8_t i = 0; i < 16; i++) { if (samplingRate == supportedSamplingRates[i]) return true; }