Commit graph

7 commits

Author SHA1 Message Date
Henry Eklind 36cc17efed Skip ID3v2 data prepended to flac files on parsing (#21)
* Change signature to flacSignature

In order to disambiguate the introduction of the ID3v2 signature.

* Add check flac files containing ID3v2 data

* Implement skipId3v2

Note: a new import for decoding synchronized integers from ID3v2 headers
was introduced.

* Add error checking on the r.Discard calls

* Fix comments

* Use limited scope for error handling

* Capitalize ID in skipID3v2

* Fix comments

* Add testcase for skipping id3 data
2018-05-25 17:27:20 +02:00
chewxy 43fbacf007 Added 8297-275156-0011.flac, which is a 16kHz sampled file, derived from the LibriSpeech ASR corpus by Vassil Panayotov and Daniel Povey. The file is CCBY-4.0 2017-10-01 09:09:15 +11:00
mewmew 2ece18bf05 flac: Fix typo in readme. 2016-07-20 15:45:08 +02:00
mewmew 78330e7949 flac: Address comments to commit 306014a. Add license notice for missing-value.flac.
A clean solution to [1] is yet to be located.

[1]: 306014abef (commitcomment-18312389)
2016-07-20 15:40:33 +02:00
mewmew aadf80aa28 frame: Extend test cases to increase code coverage.
Test a corpus of 585 public domain FLAC files with a duration of less than 1 minute from freesound.org.

Out of these files, the following increased code coverage and where thus added to the test suit.

* 19875 (sample rate 48 kHz)
* 44127 (8 bits-per-sample, sample rate 22254)
* 80574 (sample rate 22050)
* 191885 (block size 1, verbatim)
* 212768 (sample rate 88200)
* 220014 (utf-8 continuation byte)
* 243749 (sample rate 8000)
* 257344 (sample rate 32000)
* 256529 (sample rate 192000)
2016-02-11 04:12:51 +01:00
mewmew 154b8f6f7f frame: Fix decoding of FLAC files with wasted bits-per-sample.
Fixes issue #12.
2016-02-02 14:51:37 +01:00
mewmew cdefca80cf testdata: Add three flac sounds to be used for test cases. 2013-10-30 21:01:17 +01:00