Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 84fe9706 authored by Andy Hung's avatar Andy Hung Committed by Android (Google) Code Review
Browse files

Merge "FLACExtractor: Extend bit-depth and sample rate"

parents 71738ebf 0d4c354a
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -514,8 +514,10 @@ status_t FLACParser::init()
        case 8:
        case 16:
        case 24:
        case 32: // generally not expected for FLAC
            break;
        default:
            // Note: internally the FLAC extractor supports 2-32 bits.
            ALOGE("unsupported bits per sample %u", getBitsPerSample());
            return NO_INIT;
        }
@@ -532,8 +534,11 @@ status_t FLACParser::init()
        case 48000:
        case 88200:
        case 96000:
        case 176400:
        case 192000:
            break;
        default:
            // Note: internally we support arbitrary sample rates from 8kHz to 192kHz.
            ALOGE("unsupported sample rate %u", getSampleRate());
            return NO_INIT;
        }