Commit graph

127 commits

Author SHA1 Message Date
DataHoarder a465b24607
Fix Decode benchmark, add samples properly 2022-12-06 10:34:37 +01:00
DataHoarder bb1d87b2e6
Fix internal/bits test 2022-12-01 10:22:29 +01:00
DataHoarder 42e7219a3f
Removed main dependencies, output float32 instead of bytes, rename package 2022-12-01 10:20:34 +01:00
Hajime Hoshi c4ad2cec0a example: remove the build tag 2022-11-06 23:45:08 +09:00
Hajime Hoshi 26f0b17459 internal/maindata: suppress out-of-range error
Updates #51
2022-11-02 22:52:18 +09:00
Hajime Hoshi ddb52f993e update Oto 2022-11-02 13:33:53 +09:00
Hajime Hoshi 87e17ec7f7 example: use Oto v2 2022-06-27 21:52:31 +09:00
Alexandros Dorodoulis 1d84bb4a61
fix: make initialization of nSlen2 safe for concurrent usage (#49)
The concurrent implementation of nSlen2 initialization causes a data race
if multiple mp3's are read at the same time and nSlen2 hasn't been already initialized
this fixes the race condition by initializing the nSlen2 once
2022-02-18 16:57:42 +09:00
gonutz 1784589173
Fix compile errors (#45) 2021-04-08 23:37:05 +09:00
gonutz 447b9ca0fd
Fix compiler error (#44) 2021-04-08 23:00:44 +09:00
gonutz 00f4ca53d8
Shortcut asking Decoder for current position, replace panics with errors (#43)
This change
* adds a shortcut to get the current position by Seek for performance
* replaces panics with errors so that go-mp3 behaves more gracefully
2021-04-07 23:55:13 +09:00
Hajime Hoshi cc618d1297 Fix failure to build with Go 1.12 2020-08-16 19:44:15 +09:00
Hannes Steinhaeuser efc68952b8
Replace example MPEG2 file (#36)
Replace the provided example MPEG2 file by a copyright free version (using the beginning of
Alice's Adventures in Wonderland by Lewis Carroll, published in 1865).
2020-06-03 02:45:36 +09:00
Hajime Hoshi 70857f413a maindata: Remove old comments 2020-06-02 12:08:52 +09:00
Hannes Steinhaeuser c0c1e5a4b1
Add support for MPEG2 low sampling frequencies (#12) (#35)
Fixes #12
2020-06-02 10:53:42 +09:00
Aaron Bieber 49770b4f19
bump oto to v0.6.1 so gonic can build on {Open,Free}BSD (#34) 2020-05-19 12:48:21 +09:00
Hajime Hoshi b94702f95e Replace oto.NewPlayer with (*oto.Context).NewPlayer 2020-04-11 04:46:58 +09:00
Hajime Hoshi 96c001d18d Update Oto version 2019-05-16 18:34:19 +01:00
Hajime Hoshi 14af46a99b Breaking change: Remove (*Decoder).Close 2019-03-31 22:40:05 +09:00
Hajime Hoshi 7ecd8b4c09 Add Sergei to AUTHORS 2019-03-20 12:51:23 +09:00
Sergei Dudka 427f6ab385 Use io.ReadSeeker instead of io.ReadCloser (#31) 2019-03-20 12:50:16 +09:00
Hajime Hoshi 90191ee719 Update go.mod 2018-07-25 01:25:05 +09:00
Hajime Hoshi 424b463651 Add go.mod 2018-07-25 01:12:40 +09:00
Hajime Hoshi 3c185f92b8 frames: Bug fix: crash at *Frame.stereoProcessIntensityLong
Fixes #24
2018-02-07 23:47:44 +09:00
Hajime Hoshi 81bb838ef7 frames: Bug fix: crash at *Frame.stereo
Fixes #23
2018-02-07 23:45:46 +09:00
Hajime Hoshi 22bc0be280 Bug fix: Crash with fuzzing data
Fixes #22
2018-02-06 22:44:13 +09:00
Hajime Hoshi a843108de7 frame: Optimization 2018-01-24 01:18:12 +09:00
Hajime Hoshi 807a192a26 imdct: Optimization 2018-01-24 00:49:24 +09:00
Hajime Hoshi e33c08454c frame: Bug fix: wrong index range
Enbuged at b43def0c64
2018-01-07 16:36:08 +09:00
Hajime Hoshi 11d5592539 frame: Reduce calling math.Pow 2017-12-31 00:59:44 +09:00
Hajime Hoshi b43def0c64 frame: Use copy when possible 2017-12-31 00:56:05 +09:00
Hajime Hoshi 3bda0e6aa0 huffman: Bug fix: wrong table index
Fixes #19
2017-12-30 05:53:28 +09:00
Hajime Hoshi f71fa6e320 huffman: Refactoring 2017-12-30 03:10:51 +09:00
Hajime Hoshi 61be693ca1 Fix index out of range 2017-12-30 01:14:41 +09:00
Hajime Hoshi 12dfe14ddf Reduce noises (but not all the problems are solved) (#19) 2017-12-29 22:38:14 +09:00
Hajime Hoshi c0695517a5 consts: Refactoring 2017-12-29 19:41:40 +09:00
Hajime Hoshi ca4ee6ad94 frame: Refactoring 2017-12-29 15:58:19 +09:00
Hajime Hoshi dd44428570 Update README 2017-12-28 19:58:11 +09:00
Hajime Hoshi 501e4d131b Calculate length at NewDecoder as now calculating is fast enough 2017-12-22 23:46:27 +09:00
Hajime Hoshi adea989fa6 Make calculating length faster 2017-12-22 23:39:42 +09:00
Hajime Hoshi e7899da130 example: Show length in bytes 2017-12-22 23:27:21 +09:00
Hajime Hoshi 2b8cfd1add Refactoring: Early return 2017-12-22 21:43:51 +09:00
Hajime Hoshi a7c6535702 Bug fix: Seek can't be called before Length is called 2017-12-22 11:56:33 +09:00
Hajime Hoshi 373a805af2 Bug fix: Length() should not change the position 2017-12-22 11:48:57 +09:00
Hajime Hoshi b28eff8130 Calculate length lazily 2017-12-22 04:55:02 +09:00
Hajime Hoshi 551b228a29 frame: Bug fix: index for Count1 was inverted
Fixes #13, #17
2017-11-19 04:44:07 +09:00
Hajime Hoshi c7218fe5d8 Fix comments and styles 2017-11-19 04:18:59 +09:00
Hajime Hoshi e72e3b6ecf frameheader: Refactoring 2017-11-19 04:18:35 +09:00
Hajime Hoshi 632c7441e0 bits: Add tests 2017-11-19 03:03:39 +09:00
Hajime Hoshi 0d5c7e833f frame: Refactoring 2017-11-19 01:08:54 +09:00