Hajime Hoshi
531dc7efd9
audio/internal/convert: return an error when not seekable
2024-07-14 23:39:52 +09:00
Hajime Hoshi
b0753008ab
audio/wav: refactoring
2024-07-14 22:56:26 +09:00
Hajime Hoshi
09cac12390
audio: bug fix: reduce test flakiness
2024-07-14 21:18:08 +09:00
Hajime Hoshi
1d75c9e967
audio/internal/convert: Seek with incomplete bytes should work
...
Usually users use audio.Player objects and doesn't use Resampling
object directly. Resampling object itself is exposed by
audio.Resample, but this is usually used with audio.Player objects.
Thus, this issue is not so serious in the real world.
2024-07-14 18:37:15 +09:00
Hajime Hoshi
fc70392093
audio/internal/convert: typo
2024-07-14 17:51:44 +09:00
Hajime Hoshi
b552266afe
audio/internal/convert: enable to resample a float32 stream
...
Updates #2160
2024-07-14 17:51:24 +09:00
Hajime Hoshi
bf90217e68
audio: skip TestNonSeekableSource on browsers
2024-07-14 01:22:15 +09:00
Hajime Hoshi
0963b8a7e3
audio: bug fix: players were not finished at TestNonSeekableSource
2024-07-14 00:48:55 +09:00
Hajime Hoshi
91cdaa9f11
audio/internal/convert: bug fix: Read never returned io.EOF when seeked
2024-07-14 00:04:32 +09:00
Hajime Hoshi
c03ece2671
audio: GC a player
...
This is not necessary but it is always better to clean up unused
players.
2024-07-14 00:03:59 +09:00
Hajime Hoshi
03ca5c3b26
audio/internal/convert: bug fix: skip tests on browsers correctly
2024-07-14 00:03:44 +09:00
Hajime Hoshi
bf3ded2a55
audio: bug fix: test out of memory on browsers
2024-07-13 23:13:30 +09:00
Hajime Hoshi
6f74e03cb3
audio/internal/convert: better tests
2024-07-13 22:42:26 +09:00
Hajime Hoshi
96a07c1bf2
audio/internal/convert: bug fix: skip some tests on browsers
2024-07-13 22:39:37 +09:00
Hajime Hoshi
43f505b3a0
audio: use float32 format under the hood
...
Updates #2160
2024-07-13 21:46:39 +09:00
Hajime Hoshi
f8e3bef368
audio/internal/convert: refactoring: move utilities to audio/vorbis
2024-07-07 17:03:11 +09:00
Hajime Hoshi
844a4de872
audio: remove const bytesPerSampleInt16
...
This is a preparation for float32 players.
Updates #2160
2024-07-06 23:57:05 +09:00
Hajime Hoshi
9ef27a2c75
audio: make applicationState() thread-safe
...
Closes #3021
2024-07-06 17:41:42 +09:00
Hajime Hoshi
5942192b66
audio/vorbis: refactoring
2024-05-21 02:42:43 +09:00
Hajime Hoshi
a612e74031
audio/wav: add (*Stream).SampleRate
...
Closes #2996
2024-05-18 20:19:27 +09:00
Hajime Hoshi
ac83181403
audio/mp3: add (*Stream).SampleRate
...
Updates #2996
2024-05-18 20:13:36 +09:00
Hajime Hoshi
d2c58dac8c
audio/vorbis: add (*Stream).SampleRate
...
Updates #2996
2024-05-18 20:09:37 +09:00
Hajime Hoshi
322ad99568
audio/mp3, audio/vorbis, audio/wav: add comments about cache
2024-05-04 17:30:18 +09:00
Hajime Hoshi
6bbfec1869
audio: refactoring: initialize the context at an update hook
...
Closes #2715
2024-03-16 22:42:04 +09:00
Hajime Hoshi
9cd525a04e
audio: bug fix: position adjustment should not start before ready
...
Updates #2901
2024-03-16 22:03:36 +09:00
Hajime Hoshi
9cc017412f
audio: refactoring
2024-03-16 21:44:39 +09:00
Hajime Hoshi
d10636d235
audio: bug fix: suspend and resume player's stopwatches
...
Updates #2901
2024-02-01 20:30:09 +09:00
Hajime Hoshi
6ced6987cd
audio: make (*Player).Position()
smoother
...
Closes #2901
2024-02-01 18:05:14 +09:00
Hajime Hoshi
788529ff76
audio: skip making a player at SetPosition when possible
2024-02-01 17:31:16 +09:00
Hajime Hoshi
d1ec00e2ba
audio: don't create an underlying player at Position
...
This is simply unnecessary.
2024-02-01 17:18:18 +09:00
Hajime Hoshi
b9f0db955c
audio: refactoring
2024-02-01 15:27:24 +09:00
Hajime Hoshi
82f2319020
internal/hook: rename hooks -> hook
2023-10-06 13:58:00 +09:00
Hajime Hoshi
98ead195c6
audio: bug fix: deadlock between a player and a context
...
Closes #2737
2023-08-29 14:52:48 +09:00
Hajime Hoshi
fbea792fe4
audio: rename Seek -> SetPosition and Current -> Position
...
Seek and Current are not removed but marked as deprecated.
Closes #2698
2023-08-02 01:24:52 +09:00
Hajime Hoshi
335dab9175
audio: refactoring
2023-07-30 17:04:58 +09:00
Hajime Hoshi
5f1d1ec412
update Oto to v3.0.0-alpha.2
2023-07-30 16:05:17 +09:00
Hajime Hoshi
875113782a
update Oto to v3
...
Closes #2659
2023-07-30 14:52:59 +09:00
Hajime Hoshi
9b05d9eb35
audio: refactoring
2023-07-30 14:42:13 +09:00
Hajime Hoshi
65afb51d73
audio/wav: refactoring
2023-04-18 22:27:22 +09:00
Hajime Hoshi
aeca79494f
audio: bug fix: compile error
2023-04-08 19:40:59 +09:00
Hajime Hoshi
85f8423345
audio: rename constants
...
Updates #2630
2023-04-08 19:14:28 +09:00
Pierre Curto
4de807cc44
all: fix typos ( #2558 )
...
Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
2023-01-28 19:06:38 +09:00
Hajime Hoshi
8ef52841bc
audio: use NewContextWithOptions
...
Upates #2534
2023-01-09 19:15:31 +09:00
Hajime Hoshi
6bce8fea2d
audio: update comments
2023-01-09 18:53:19 +09:00
Artem Yadelskyi
5b53cef59e
all: remove old // +build
comments ( #2431 )
...
Closes #2325
2022-11-03 12:55:14 +09:00
Hajime Hoshi
1906262ef4
audio/internal/convert: refactoring
2022-10-23 01:14:30 +09:00
Nathan Levett
18123a6336
audio/internal/convert: add a lazy-load getter for cosTable
( #2404 )
...
Closes #2286
2022-10-23 00:24:51 +09:00
Hajime Hoshi
80407fb9d6
audio/vorbis: use go:embed
...
Updates #1258
2022-09-17 21:58:32 +09:00
Hajime Hoshi
5404e4d68a
all: replace io/ioutil
with io
and os
...
Closes #1770
2022-09-15 02:54:25 +09:00
Hajime Hoshi
655cd4bf68
all: remove the build tag
...
Updates #1415
2022-09-15 00:23:40 +09:00