Hajime Hoshi
efab369512
all: go fix
2026-03-15 17:46:48 +09:00
Jon Rafkind
e8a9c3581a
audio: add opus package ( #3393 )
...
Adds support for opus audio decoding in the ebiten/v2/audio/opus package.
Closes #368
2026-02-21 11:40:20 +09:00
Hajime Hoshi
8417dc2c98
audio/internal/convert: bug fix: a returned stream's Length and actual read buffer length didn't match
...
Closes #3352
2025-12-01 16:03:09 +09:00
liuyueyangxmu
3e2866c664
all: refactoring: omit unnecessary reassignment ( #3350 )
...
Signed-off-by: liuyueyangxmu <liuyueyangxmu@outlook.com >
2025-11-26 20:21:06 +09:00
Hajime Hoshi
74835fb5bd
all: add #cgo optimization directives
...
Closes #3196
2025-09-22 12:27:34 +09:00
Hajime Hoshi
51cc3aed04
all: replace runtime.SetFinalizer with AddCleanup
...
Updates #3204
2025-09-21 23:14:53 +09:00
Hajime Hoshi
6d949e119f
audio: bug fix: the audio source for testing was too short
...
Closes #3216
2025-09-20 16:41:18 +09:00
Hajime Hoshi
6badd1230d
audio: skip TestSameSourcePlayers
2025-04-22 00:23:23 +09:00
Hajime Hoshi
2372b75258
audio: remove audio.Close implementations
...
Updates #2210
2025-04-08 01:35:53 +09:00
Hajime Hoshi
0b6b08fc44
audio: return an error for a closed player
...
Updates #3219
2025-04-04 16:08:03 +09:00
Hajime Hoshi
368dd7ab1b
audio: bug fix: second Close should return error
...
Closes #3219
2025-04-04 15:57:33 +09:00
Hajime Hoshi
e2fdaa45e7
audio/internal/convert: rename StereoI16 -> StereoI16ReadSeeker
2025-04-03 12:27:12 +09:00
Hajime Hoshi
158bf2bacd
audio/internal/convert: make StereoI16 accept a 24bit stream ( #3218 )
...
Updates #2215
2025-04-03 11:02:03 +09:00
Hajime Hoshi
1406b37f09
audio: skip TestSameSourcePlayers on Windows
...
Updates #3216
2025-04-01 00:01:02 +09:00
Hajime Hoshi
4a86f58387
audio: add error message info
2025-03-08 00:58:39 +09:00
Hajime Hoshi
6cc5ed14fc
audio: skip seeking only when the error is ErrUnsupported
...
Updates #3193
2025-02-12 02:18:07 +09:00
Hajime Hoshi
e33b9cf20e
audio: improve documentation about io.Seeker
2025-02-11 17:58:53 +09:00
Hajime Hoshi
33d30d8914
audio: add ResampleReader and ResampleReaderF32
...
Closes #3194
2025-02-11 17:43:34 +09:00
Hajime Hoshi
fdddb0e265
audio/internal/convert: bug fix: make Resampling work with non-seekable source
...
Closes #3193
2025-02-11 17:28:14 +09:00
Hajime Hoshi
4df5d02c36
audio/vorbis: bug fix: an int16Stream with io.Reader didn't work
...
Closes #3192
2025-02-11 14:44:50 +09:00
Hajime Hoshi
6cdc2a693b
audio, audio/vorbis: ignore error at the initial Seek
...
This mitigates the issue of non-seekable source. At least,
vorbis.DecodeF32 and audio.NewPlayerF32 works.
Updates #3192
2025-02-11 03:03:29 +09:00
Hajime Hoshi
3a1eeabff1
audio: fix test flakiness
...
This test could fail on Windows, though this is pretty rare.
https://github.com/hajimehoshi/ebiten/actions/runs/13085345903/job/36515771792
```
=== RUN TestSameSourcePlayers
audio_test.go:98: got: nil, want: an error
```
2025-02-01 14:11:41 +09:00
Hajime Hoshi
7b5054ca3a
audio: bug fix: (*Player).Position is not updated correctly
...
Update might not be called or delayed when the window is in background
and invisible on macOS. Let's use a distinct groutine to update the
audio player states.
Closes #3154
2024-11-06 22:16:16 +09:00
Hajime Hoshi
20014ad5bc
audio: remove locks from (*timeStream).position
2024-11-06 22:13:21 +09:00
Hajime Hoshi
0981355b61
audio: remove locks from (*Player).Position
2024-11-06 21:12:05 +09:00
Hajime Hoshi
4bccf9d009
all: use math/rand/v2
2024-09-12 01:17:26 +09:00
Hajime Hoshi
a4bfa6cb15
all: use Go 1.21's min/max builtin functions
2024-09-12 01:01:05 +09:00
Hajime Hoshi
a36f6210c0
all: use Go 1.20 APIs
...
Closes #2746
2024-09-12 00:22:45 +09:00
Hajime Hoshi
26feb26237
audio: add more info for errors
...
Updates ebitengine/oto#93
2024-09-10 12:29:06 +09:00
Hajime Hoshi
8f32cc19c5
audio: update comments
2024-08-18 11:13:35 +09:00
Hajime Hoshi
719838b7ab
.github/workflows: update wasmbrowsertest to fix timeout issue
...
The issue agnivade/wasmbrowsertest#60 was fixed.
Updates #1313
2024-08-02 23:03:01 +09:00
Hajime Hoshi
b78475ed78
audio/internal/convert: try to make the test stable
2024-07-21 23:31:38 +09:00
Hajime Hoshi
cdef7df61d
audio: update comments
...
Updates #2160
2024-07-21 21:45:55 +09:00
Hajime Hoshi
a032a5d71c
audio: update comments
...
Updates #2160
2024-07-21 21:42:19 +09:00
Hajime Hoshi
f0ef1ecad0
all: add float32 version of audio APIs
...
This change adds these APIs
* (*audio.Context).NewPlayerF32
* (*audio.Context).NewPlayerF32FromBytes
* audio.NewInfiniteLoopF32
* audio.NewInfiniteLoopWithIntroF32
* audio.ResampleF32
* mp3.DecodeF32
* vorbis.DecodeF32
* wav.DecodeF32
Closes #2160
2024-07-21 19:12:18 +09:00
Hajime Hoshi
1d7c350967
audio/mp3: refactoring
2024-07-21 17:00:46 +09:00
Hajime Hoshi
a6a6709163
audio: use float32 instead of float64 for blending
...
Updates #2160
2024-07-21 16:32:12 +09:00
Hajime Hoshi
ef8afc6cf2
audio/vorbis: refactoring
2024-07-21 15:25:32 +09:00
Hajime Hoshi
1d260eac51
audio/internal/convert: bug fix: StereoI16 didn't work in some cases
...
There are no such actual use cases, so this is not a critical bug.
2024-07-21 11:37:07 +09:00
Hajime Hoshi
f36ea4125d
audio/internal/convert: split some tests
2024-07-21 11:37:07 +09:00
Hajime Hoshi
f6c9c88f78
audio/internal/convert: better tests for Seek
2024-07-21 11:25:47 +09:00
Hajime Hoshi
e43ab06f35
audio/internal/convert: bug fix: the test input must be even number of float32s
2024-07-21 11:10:20 +09:00
Hajime Hoshi
a5213de991
audio/internal/convert: use math/rand instead of crypto/rand
2024-07-21 10:54:33 +09:00
Hajime Hoshi
f63c1c8fc5
audio/internal/convert: add StereoF32
...
Updates #2160
2024-07-21 10:52:10 +09:00
Hajime Hoshi
4689d656aa
audio/vorbis: refactoring
2024-07-21 10:10:48 +09:00
Hajime Hoshi
52820e2b43
audio: reland: bug fix: crash with uncomparable source
...
Closes #3039
2024-07-15 14:18:18 +09:00
Hajime Hoshi
420a6c16de
Revert "audio: bug fix: crash with uncomparable source"
...
This reverts commit e980d59191 .
Reason: Compile error with Go 1.19
2024-07-15 13:52:50 +09:00
Hajime Hoshi
e980d59191
audio: bug fix: crash with uncomparable source
...
Closes #3039
2024-07-15 13:46:23 +09:00
Hajime Hoshi
af29b7194d
audio/wav: typo
2024-07-14 23:45:25 +09:00
Hajime Hoshi
531dc7efd9
audio/internal/convert: return an error when not seekable
2024-07-14 23:39:52 +09:00