mirror of
https://gitlab.com/ecodis/exhale.git
synced 2025-01-06 20:21:06 +01:00
fix note print-out
This commit is contained in:
parent
39dc185256
commit
8b56192418
@ -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)
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user