Commit graph

36 commits

Author SHA1 Message Date
DataHoarder 42f940f815
Update module url 2022-07-26 16:14:37 +02:00
Henry Eklind 59ff7d9caa
fix/flac: Actually print relevant incorrect type (#49)
* fix/flac: Actually print relevant incorrect type

`si` will always be `(*meta.StreamInfo)`, the relevant type is
`block.Header.Type` which implements `Stringer`

* Update flac.go

Co-authored-by: Robin <mewmew@users.noreply.github.com>

Co-authored-by: Robin <mewmew@users.noreply.github.com>
2022-01-01 12:11:04 +01:00
Robin Eklind 48c2491b7c flac: add nil return in searchFromStart to fix build
Also, rename sample to sampleNum for consistency.

Use line80 comments like it is the summer of 1969.
2021-01-28 00:32:43 +01:00
Henry Eklind 11466d8af8
Absolute seek (#46)
* frame: Add frame.SampleNumber()

* flac/seek: Make stream.Seek seek to absolute sample numbers

* seek/test: Update test case for absolute seeking

* Update flac.go

Co-authored-by: Robin <mewmew@users.noreply.github.com>

* Update flac.go

Co-authored-by: Robin <mewmew@users.noreply.github.com>

* Update flac.go

Co-authored-by: Robin <mewmew@users.noreply.github.com>

* Update flac.go

Co-authored-by: Robin <mewmew@users.noreply.github.com>

* Update flac_test.go

Co-authored-by: Robin <mewmew@users.noreply.github.com>

* Update frame/frame.go

Co-authored-by: Robin <mewmew@users.noreply.github.com>

* flac: Improve code styling

* flac: Add ErrNoSeeker documentation comment

* flac: Make searchFromStart return an error instead of panic

* Update flac.go

Co-authored-by: Robin <mewmew@users.noreply.github.com>

* Update flac.go

Co-authored-by: Robin <mewmew@users.noreply.github.com>

Co-authored-by: Robin <mewmew@users.noreply.github.com>
2021-01-28 00:23:27 +01:00
Robin Eklind bb157a5067 flac: use io.ReadSeeker as parameter of NewSeek 2021-01-23 18:05:53 +01:00
Craig Swank 052c3e4f58
Implement seek (#44)
* Implement seek

* update tests

* fixed io.SeekCurrent seek

* rename test

* Tweak seekTable reserved slice size

* fixed a seek bug

* brush up comment

* a little cleanup

* Update flac.go

Co-authored-by: Robin <mewmew@users.noreply.github.com>

* Update flac.go

Co-authored-by: Robin <mewmew@users.noreply.github.com>

* CR changes

* remove unused Err

* try to make comment easier to understand

* comment edit

Co-authored-by: Robin <mewmew@users.noreply.github.com>
2021-01-23 17:38:38 +01:00
mewmew c28568d4b1 flac: add notice about Encoder API being experimental until 1.1.x 2018-08-20 14:59:42 +09:00
Mikey Dickerson b3ae1b93a8 remove unnecessary conversion 2018-06-06 22:14:00 -04:00
Mikey Dickerson 147494a422 remove dependency on encodebytes 2018-06-06 22:05:04 -04:00
mewmew fcab6ed7a2 flac: minor update of comment 2018-05-25 18:15:07 +02:00
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
mewmew ffd35219d3 flac: fix Close method to close underlying file descriptor 2018-04-08 17:47:05 +02:00
Henry Eklind b05b58d3c0
flac: lint comment 2016-10-17 17:59:41 +02:00
Henry Eklind f65e4706bd
flac: fix placeholder argument return values 2016-10-15 20:30:14 +02:00
Henry Eklind 4a859d4c98
flac: fix nil pointer assignment segmentation fault 2016-10-15 20:29:38 +02:00
Henry Eklind 0dc1119122
denser error handling 2016-07-22 00:56:37 +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
Henry Eklind be533874f4 flac: check error in Open 2016-01-30 11:45:41 +01:00
mewmew e95c34c138 all: Update godoc links to use gopkg.in/mewkiz/flac.v1 2015-01-30 01:58:04 +01:00
mewmew 50ad5a4321 flac: Use versioned imports. 2014-09-30 02:24:15 +02:00
mewmew e0bb97c810 flac: Use buffered reader throughout and fix io.Closer behavior. 2014-08-08 22:16:37 +02:00
mewmew d97155529f flac,frame,meta: Fix display of links. 2014-08-08 08:52:08 +02:00
mewmew d3c8aefe38 flac: Add new API definition and implementation of package flac. Updates issue #4. 2014-08-08 07:23:54 +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 9370982910 frame: Verify decoded audio data using md5. 2014-08-05 15:33:23 +02:00
mewmew caaecdbd81 flac,meta: Relax input requirements from io.ReadSeeker to io.Reader. 2014-08-02 22:48:55 +02:00
mewmew 58d1de7242 flac: Make FLAC signature unexported. 2014-07-31 02:38:51 +02:00
mewmew 791b08c55e flac: Remove comment with links to various FLAC projects and resources.
We can easily use Google to find these again, and they are always present in the
git history.
2013-11-16 21:41:07 +01:00
mewmew e1fd9fef60 flac: Minor update of documentation. 2013-11-04 09:52:29 +01:00
mewmew c4e2b604f7 go fmt * 2013-11-03 22:19:15 +01:00
mewmew 88c2adcd20 flac,meta: Update documentation. 2013-10-31 00:16:12 +01:00
mewmew 3dda414a47 flac,meta: Parse metadata block bodies based on a provided BlockType bitfield. 2013-10-30 23:55:42 +01:00
mewmew f71ed6f163 flac,meta: Update StreamInfo documentation and rename a couple of constants. 2013-10-30 20:28:17 +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 1a2f006677 Rename the package from rsf to flac. A command can later use the rsf name. 2013-06-07 03:23:23 +02:00
mewmew 3311736ba4 meta: Minor cleanups of comments. Rename rsf.go to flac.go.
The name rsf will later be used for a command line tool, while the package will
be named flac.
2013-01-18 15:16:44 +01:00
Renamed from rsf.go (Browse further)