Commit graph

122 commits

Author SHA1 Message Date
DataHoarder 42f940f815
Update module url 2022-07-26 16:14:37 +02:00
mewmew 3b70b1df45 flac: fix golangci metalint issues 2018-08-18 01:20:48 +09:00
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
mewmew e0b198eedb flac/meta: Fix build of test cases. 2016-12-16 00:03:05 +01:00
Henry Eklind 57079a7bf9
meta_test: remove erroneous Close 2016-10-17 17:53:02 +02:00
Henry Eklind 0dc1119122
denser error handling 2016-07-22 00:56:37 +02: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
Henry Eklind 54d90790d7
gofmt 2016-07-20 11:42:38 +02:00
Henry Eklind 24b8faa674 Merge branch 'master' of https://github.com/mewkiz/flac 2016-07-20 11:26:22 +02:00
Henry Eklind ec7de9b4e1
add test case for missing name/value separator in vorbiscomments 2016-07-20 11:24:11 +02:00
Henry Eklind c404968f8c
denser error handling style 2016-07-20 11:08:43 +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 3f1d1096d8 internal: Add bits and hashutil packages to make the flac package self-contained. 2016-04-05 02:40:46 +02:00
mewmew 9970b89a55 flac: Drop use of gopkg.in in import paths. Rely on vendoring instead.
ref: azul3d/engine#1
2016-03-07 00:06:54 +01:00
mewmew 711a21c5d6 flac: Add API examples. Fixes #11. 2016-02-11 01:23:11 +01: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 ee0de8a0e7 all: gofmt -s 2015-02-25 17:19:04 +01:00
mewmew e95c34c138 all: Update godoc links to use gopkg.in/mewkiz/flac.v1 2015-01-30 01:58:04 +01:00
mewmew ffd8c986fb meta: Fix golint issues in test cases. 2015-01-30 01:16:29 +01:00
mewmew 50ad5a4321 flac: Use versioned imports. 2014-09-30 02:24:15 +02:00
mewmew 5d5937d195 meta: Rename MIMEType to MIME in the Picture type. 2014-08-08 09:09:20 +02:00
mewmew 03e3751e96 meta: Fix broken link. 2014-08-08 08:55:46 +02:00
mewmew d97155529f flac,frame,meta: Fix display of links. 2014-08-08 08:52:08 +02: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 ddd621f24d meta: Update test cases to make use of the latest version of the flac API. Package flac is still to be commited. 2014-08-08 06:39:44 +02:00
mewmew 654f26264a frame: Return io.ErrUnexpectedEOF if EOF occurs in the middle of an audio frame. 2014-08-08 05:33:21 +02:00
mewmew 88de0bd4a7 meta: Add a brief introduction of the FLAC metadata format. 2014-08-08 02:38:26 +02:00
mewmew 9da7278b01 meta: Add test cases; mewkiz/flac is yet to be commited. 2014-08-06 16:27:15 +02:00
mewmew 442d20e7a8 meta: Don't allocate empty slices in VorbisComment and Application. 2014-08-06 16:26:28 +02:00
mewmew cbb122acaa meta: Add missing reader.go. 2014-08-06 16:14:13 +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 657e658362 meta: Fix decoding of seek points; use big instead of little endian. 2014-08-06 14:41:00 +02:00
mewmew 29ae33acae meta: Fix masks in parseCueSheet. 2014-08-06 14:27:27 +02:00
mewmew c1df916946 meta: Return partially populated Block on errors from New and Parse. 2014-08-06 14:17:28 +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 c71d9382fd meta: Use encoding/binary instead of pkg/bit for parsing of VorbisComment. 2014-08-06 06:48:03 +02:00
mewmew 93bed24a71 meta: Implement parsing of VorbisComment. 2014-08-06 06:43:28 +02:00
mewmew c8cf374193 meta: Implement error handling for SeekTable parsing. 2014-08-06 06:23:23 +02:00
mewmew a9a36c85a8 meta: Implement parsing of SeekTable. 2014-08-06 06:08:13 +02:00
mewmew aedd0b7638 meta: Implement parsing of StreamInfo. 2014-08-06 05:56:33 +02:00
mewmew 25cfda5501 meta: Implement the parseApplication method of Block. 2014-08-06 05:34:09 +02:00
mewmew cc07fad5ef meta: Implement the Skip and verifyPadding methods of Block. 2014-08-06 05:31:53 +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 c28bc3908c meta: Minor update of comment. 2014-08-06 02:25:40 +02:00
mewmew 43e6d54a86 meta: Allocate Block in New. 2014-08-06 02:18:34 +02:00
mewmew 3a8fa11447 meta: Update StreamInfo doc comment. 2014-08-06 01:25:31 +02:00