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

fix note print-out

parent 39dc1852
......@@ -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)
......
......@@ -19,7 +19,7 @@ static const unsigned supportedSamplingRates[16] = {
// 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;
}
......
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