fix note print-out

This commit is contained in:
Christian R. Helmrich 2020-10-28 11:00:00 +01:00
parent 39dc185256
commit 8b56192418
2 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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;
}