Commit 8b561924 authored by Christian R. Helmrich's avatar Christian R. Helmrich
Browse files

fix note print-out

parent 39dc1852
...@@ -444,7 +444,7 @@ int main (const int argc, char* argv[]) ...@@ -444,7 +444,7 @@ int main (const int argc, char* argv[])
return 16384; // preset isn't supported 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 const unsigned startLength = (frameLength * 25) >> 4; // encoder PCM look-ahead
if (readStdin) // configure stdin if (readStdin) // configure stdin
...@@ -566,7 +566,7 @@ int main (const int argc, char* argv[]) ...@@ -566,7 +566,7 @@ int main (const int argc, char* argv[])
goto mainFinish; // ask for resampling goto mainFinish; // ask for resampling
} }
if (wavReader.getSampleRate () > 32000 && variableCoreBitRateMode == 1) if (wavReader.getSampleRate () > 32000 && variableCoreBitRateMode <= 1)
{ {
#if ENABLE_RESAMPLING #if ENABLE_RESAMPLING
if (wavReader.getSampleRate () == 48000) if (wavReader.getSampleRate () == 48000)
......
...@@ -12,14 +12,14 @@ ...@@ -12,14 +12,14 @@
// ISO/IEC 23003-3 USAC Table 67 // ISO/IEC 23003-3 USAC Table 67
static const unsigned supportedSamplingRates[16] = { 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 57600, 38400, 19200 // BL USAC
}; };
// public sampling rate function // public sampling rate function
bool isSamplingRateSupported (const unsigned samplingRate) 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; if (samplingRate == supportedSamplingRates[i]) return true;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment