Commit Graph

29 Commits

Author SHA1 Message Date
Hajime Hoshi
43f505b3a0 audio: use float32 format under the hood
Updates #2160
2024-07-13 21:46:39 +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
9cd525a04e audio: bug fix: position adjustment should not start before ready
Updates #2901
2024-03-16 22:03:36 +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
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
5f1d1ec412 update Oto to v3.0.0-alpha.2 2023-07-30 16:05:17 +09:00
Hajime Hoshi
85f8423345 audio: rename constants
Updates #2630
2023-04-08 19:14:28 +09:00
Hajime Hoshi
8ef52841bc audio: use NewContextWithOptions
Upates #2534
2023-01-09 19:15:31 +09:00
Hajime Hoshi
921aeb4ea7 audio: rename channelNum -> channelCount 2022-07-13 02:08:38 +09:00
Hajime Hoshi
8cb023e3c8 audio: refactoring: remove Reset from Player 2022-07-01 02:33:39 +09:00
Hajime Hoshi
12d274eb0a update Oto for a player's Seek
Updates hajimehoshi/oto#172
2022-07-01 02:21:19 +09:00
Hajime Hoshi
abc8697ea3 audio: fix a wrong comment 2022-07-01 02:06:30 +09:00
Hajime Hoshi
22c609dd1e audio: rename Ebiten -> Ebitengine 2022-05-26 00:27:27 +09:00
Hajime Hoshi
7a33837ed7 audio: change the type of SetBufferSize to time.Duration
Updates #2026
2022-03-25 20:47:01 +09:00
Hajime Hoshi
0e8c423e51 Revert "audio: add (*Player).UnplayedBufferSize (#2021)"
This reverts commit 7744013b05.

Reason: This is no longer needed and SetBufferSize is enough.

Updates #2020
Updates #2026
2022-03-25 20:28:32 +09:00
Hajime Hoshi
08783542eb audio: add Player.SetBufferSize
This change also adds examples/realtimepcm.

Closes #2026
2022-03-25 19:27:25 +09:00
Hajime Hoshi
7744013b05
audio: add (*Player).UnplayedBufferSize (#2021)
Closes #2020
2022-03-22 16:55:56 +09:00
Hajime Hoshi
eaaa601261 audio: refactoring: rename types 2021-12-17 16:02:12 +09:00
Hajime Hoshi
55add3e323 audio: reduce dependency on the package oto
Updates #1900
2021-12-17 15:51:07 +09:00
Hajime Hoshi
d9967c53e5 audio: Treat Oto context's error 2021-10-22 15:29:00 +09:00
Hajime Hoshi
21e0768937 audio/internal/reader: Move the driver part to Oto v2
Closes #1779
2021-08-22 02:10:39 +09:00
Hajime Hoshi
88da1bb23f audio: Bug fix: Compile failure on JS/Wasm 2021-08-22 00:29:05 +09:00
Hajime Hoshi
fe4f96e261 audio/internal/readerdriver: Refactoring for documentations
Updates #1779
2021-08-22 00:10:31 +09:00
Hajime Hoshi
fb1ab5e779 audio: Refactoring 2021-08-21 20:10:12 +09:00