Commit 0b086888 by hoangtc Committed by Oliver Woodman

Supports FLAC files with high sample rate (176400 and 192000).

Also add testing media to verify FLAC extension can play these sample rates.

Github: #3769.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=192783193
parent fdbf16ed
...@@ -34,8 +34,11 @@ ...@@ -34,8 +34,11 @@
* IMA: Allow setting the ad media load timeout * IMA: Allow setting the ad media load timeout
([#3691](https://github.com/google/ExoPlayer/issues/3691)). ([#3691](https://github.com/google/ExoPlayer/issues/3691)).
* Audio: * Audio:
* FLAC: Sniff FLAC files correctly if they have ID3 headers * FLAC:
([#4055](https://github.com/google/ExoPlayer/issues/4055)). * Sniff FLAC files correctly if they have ID3 headers
([#4055](https://github.com/google/ExoPlayer/issues/4055)).
* Supports FLAC files with high sample rate (176400 and 192000)
([#3769](https://github.com/google/ExoPlayer/issues/3769)).
* Factor out `AudioTrack` position tracking from `DefaultAudioSink`. * Factor out `AudioTrack` position tracking from `DefaultAudioSink`.
* Fix an issue where the playback position would pause just after playback * Fix an issue where the playback position would pause just after playback
begins, and poll the audio timestamp less frequently once it starts begins, and poll the audio timestamp less frequently once it starts
......
...@@ -319,6 +319,8 @@ bool FLACParser::decodeMetadata() { ...@@ -319,6 +319,8 @@ bool FLACParser::decodeMetadata() {
case 48000: case 48000:
case 88200: case 88200:
case 96000: case 96000:
case 176400:
case 192000:
break; break;
default: default:
ALOGE("unsupported sample rate %u", getSampleRate()); ALOGE("unsupported sample rate %u", getSampleRate());
......
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 sign in to comment