Commit graph

22 commits

Author SHA1 Message Date
mewmew 10505c0392 meta: simplify parseCueSheet by refactoring
Fixes lint issue reported by gocyclo:

meta/cuesheet.go:30:1: cyclomatic complexity 37 of func `(*Block).parseCueSheet` is high (> 30) (gocyclo)
func (block *Block) parseCueSheet() error {
^

Fixes #25.
2018-05-27 15:23:03 +02:00
Henry Eklind 0dc1119122
denser error handling 2016-07-22 00:56:37 +02:00
mewmew 306014abef flac: Add preliminary encoding support.
Support for encoding metadata has been added.

Proper support for encoding audio samples is yet to be
implemented. For now, simply copy the original encoded
audio data from the source FLAC file.

The API mirrors that of image.Encode.

Updates #14.
2016-07-20 06:38:19 +02:00
mewmew 26ee53a7ed meta: Fix typo identified by misspel [1].
[1]: https://github.com/client9/misspell
2016-01-24 02:10:49 +01:00
mewmew 7a33256cf7 meta: Return io.ErrUnexpectedEOF if EOF occurs in the middle of a metadata block. 2014-08-08 06:42:26 +02:00
mewmew 89eb2c4dee meta: Fix parsing of IsAudio and add error handling for cue sheet parsing. 2014-08-06 15:16:26 +02:00
mewmew 29ae33acae meta: Fix masks in parseCueSheet. 2014-08-06 14:27:27 +02:00
mewmew 019a82fd7c meta: Fix copy-paste bug in parseHeader. 2014-08-06 08:27:35 +02:00
mewmew 6d230e615f meta: Implement parsing of Picture. This was the last piece of the new API. Updates #4. 2014-08-06 07:30:02 +02:00
mewmew 9c19fb744f meta: Implement CueSheet parsing. 2014-08-06 07:19:49 +02:00
mewmew 92d79ca4d7 meta: Implementation the Parse and parseHeader methods of Block. 2014-08-06 05:07:31 +02:00
mewmew 356f14878c meta: Fix a few spelling mistakes. 2014-08-06 03:08:02 +02:00
mewmew 0194aff9e0 meta: Add CueSheet, CueSheetTrack and CueSheetTrackIndex definitions. 2014-08-06 00:48:49 +02:00
mewmew 41e3d627da meta: Initial version of the new meta API. Updates issue #4. 2014-08-05 22:51:36 +02:00
mewmew 51d342ff4b flac: Clean start in preparation for the new API. All functionality will be back ported later on. 2014-08-05 21:51:52 +02:00
mewmew 1f8a934c8e meta: Rename metadata body parsing function from NewXxx to ParseXxx. 2013-11-04 09:22:42 +01:00
mewmew cd651de74a meta: Make use of github.com/eaburns/bit for parsing cuesheets. 2013-11-04 08:15:07 +01:00
mewmew 6047be5058 meta: Update comments. 2013-11-04 07:47:57 +01:00
mewmew e03baec101 meta: Use readBytes to minimize generation of garbage. 2013-11-03 22:52:36 +01:00
mewmew 286fa91f9d meta: Use io.ReadFull instead of r.Read. 2013-11-03 22:25:33 +01:00
mewmew f583bf6928 all: Fix issues located by golint.
- "error strings should not end with punctuation"
2013-10-29 14:45:05 +01:00
mewmew 9414c933cf meta: Split parsing of block bodies into separate files based on block type. 2013-10-29 14:32:12 +01:00