Merge branch 'master' of github.com:mewkiz/flac

This commit is contained in:
mewmew 2017-12-26 15:14:36 +01:00
commit d1bcf309b2
4 changed files with 5 additions and 2 deletions

View file

@ -28,6 +28,7 @@ func TestEncode(t *testing.T) {
"testdata/243749.flac",
"testdata/256529.flac",
"testdata/257344.flac",
"testdata/8297-275156-0011.flac",
"testdata/love.flac",
}
for _, path := range paths {

View file

@ -427,8 +427,6 @@ func (frame *Frame) parseHeader() error {
case 0x5:
// 0101: 16 kHz.
frame.SampleRate = 16000
// TODO(u): Remove log message when the test cases have been extended.
log.Printf("frame.Frame.parseHeader: The flac library test cases do not yet include any audio files with sample rate %d. If possible please consider contributing this audio sample to improve the reliability of the test cases.", frame.SampleRate)
case 0x6:
// 0110: 22.05 kHz.
frame.SampleRate = 22050

BIN
testdata/8297-275156-0011.flac vendored Normal file

Binary file not shown.

4
testdata/README.md vendored
View file

@ -16,3 +16,7 @@ The following testcase sounds have been released into the [public domain].
* [257344.flac](http://freesound.org/people/arseniiv/sounds/257344/)
[public domain]: https://creativecommons.org/publicdomain/zero/1.0/
The following flac files are CC BY 4.0:
* [8297-275156-0011.flac](http://www.openslr.org/12/) - a single file from the LibriSpeech ASR corpus, by Vassil Panyotov and DanielPovey.