Skip to content

Commit

Permalink
Supports FLAC files with high sample rate (176400 and 192000).
Browse files Browse the repository at this point in the history
Also add testing media to verify FLAC extension can play these sample rates.

Github: #3769.

-------------
Created by MOE: https:/google/moe
MOE_MIGRATED_REVID=192783193
  • Loading branch information
botaydotcom authored and ojw28 committed Apr 16, 2018
1 parent fdbf16e commit 0b08688
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 5 additions & 2 deletions RELEASENOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,11 @@
* IMA: Allow setting the ad media load timeout
([#3691](https:/google/ExoPlayer/issues/3691)).
* Audio:
* FLAC: Sniff FLAC files correctly if they have ID3 headers
([#4055](https:/google/ExoPlayer/issues/4055)).
* FLAC:
* Sniff FLAC files correctly if they have ID3 headers
([#4055](https:/google/ExoPlayer/issues/4055)).
* Supports FLAC files with high sample rate (176400 and 192000)
([#3769](https:/google/ExoPlayer/issues/3769)).
* Factor out `AudioTrack` position tracking from `DefaultAudioSink`.
* Fix an issue where the playback position would pause just after playback
begins, and poll the audio timestamp less frequently once it starts
Expand Down
2 changes: 2 additions & 0 deletions extensions/flac/src/main/jni/flac_parser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,8 @@ bool FLACParser::decodeMetadata() {
case 48000:
case 88200:
case 96000:
case 176400:
case 192000:
break;
default:
ALOGE("unsupported sample rate %u", getSampleRate());
Expand Down

0 comments on commit 0b08688

Please sign in to comment.