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

Commit 0d4c354a authored by Andy Hung's avatar Andy Hung
Browse files

FLACExtractor: Extend bit-depth and sample rate

Test: Downloaded and sox-created FLAC files up to 192kHz
Bug: 120564563
Change-Id: I9232ae2a11422b3e447df5a4f3a3478dd2ab53cb
parent a38d7a95
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;
        }