16 Commits

Author SHA1 Message Date
Damian
aae00917b9 Remove obsolete unimplimented warning
Seek was added in #111, this warning is a false positive
2022-03-04 10:03:28 -06:00
Craig Swank
00f18b202e only call Seek if ReadSeeker is passed in 2021-06-22 09:08:36 -06:00
Craig Swank
a690fbdeb5 Seek for flac 2021-06-22 09:08:36 -06:00
Robin Eklind
7385e1c1e6 flac: relax Decode input to support io.Reader without Close method
This is to mirror the change made to the wav package.

ref: fbaab50be9
2019-09-28 00:03:29 +02:00
faiface
5e4a52b2b9 fix goreportcard problems 2019-03-03 15:54:17 +01:00
Asday
aae604f10d Updated unimplemented notice for FLAC
`Len` and `Position` were added in 73cd0e435d.
2019-02-20 05:32:08 +00:00
mewmew
26ee6de595 flac: fix off-by-one in sample conversion
Issue spotted by @mehrvarz.
2018-08-18 01:47:42 +09:00
mewmew
05a918c00a flac: fix decoding of 24 bps mono FLAC files
Prior to this fix, such a file would cause an out-of-bounds panic.
2018-08-08 01:22:14 +09:00
mewmew
496b5659e1 flac: remove ReadSeeker assertion
The underlying flac library does not yet support seeking,
and when that support is added, this should be done more
gracefully in beep so that users can still use streaming
data not implementing io.Seeker

Fixes #25.
2018-07-28 06:22:18 +09:00
Craig Swank
7bb960101a update flac.pos on EOF error 2018-02-26 17:13:04 -07:00
Craig Swank
73cd0e435d Add Position and Len for flac
d.stream.Info.NSamples is uint64 so calling
int() on it could result in an overflow.  I
have no idea how likely that is, but if it happens
then Position() will return -1.
2018-02-26 11:43:26 -07:00
mewmew
c2749efa80 flac: add support for decoding input files with 1 channel 2017-12-21 13:32:06 +01:00
faiface
74e0979c97 flac: add notice about missing features 2017-11-11 12:42:59 +01:00
mewmew
724c0fa035 flac: fix sample rate for 8 and 24 bit 2017-08-18 20:39:29 +02:00
mewmew
f94f847915 flac: add support for 8 and 24 bit rate 2017-08-18 20:35:26 +02:00
mewmew
46d1ba7629 flac: initial commit 2017-08-18 20:30:19 +02:00