Commit Graph

9601 Commits

Author SHA1 Message Date
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
1fc2dedaaa all: update gomobile 2024-08-02 13:33:55 +09:00
Hajime Hoshi
297efea68b internal/graphicsdriver/opengl/gl: use C version for Android
Unfortunately PureGo's dlopen didn't work on some Android devices.
Use the Cgo version instead in the same way as v2.7.

Closes #3052
2024-08-01 11:52:07 +09:00
Hajime Hoshi
856b339298 internal/ui: bug fix: show a black dot at the red button when needed
When SetWindowClosingHandled(true) is called, a black dot should be
shown at the red button to close the window.

Closes #3020
2024-07-31 23:54:18 +09:00
Hajime Hoshi
3106f98b52 internal/graphicsdriver/opengl/gl: add more error messages to load libraries 2024-07-31 21:35:24 +09:00
Hajime Hoshi
1843f6acc1 internal/ui: bug fix: dropping multiple files didn't work on Firefox and Safari
Closes #3045
2024-07-31 11:50:30 +09:00
Hajime Hoshi
95ad1b158c internal/file: refactoring
Updates #3045
2024-07-31 11:21:35 +09:00
Hajime Hoshi
47b8af554c all: update Oto to v3.3.0-alpha.3 2024-07-31 00:15:04 +09:00
Hajime Hoshi
c8aea2df16 examples/blocks: bug fix: do not ignore error 2024-07-29 17:37:30 +09:00
Hajime Hoshi
0281ac7bd2 all: use bufio.NewWriter to improve writing speed 2024-07-29 16:29:57 +09:00
Hajime Hoshi
ef5ac4175d all: use bufio.Reader to improve reading speed 2024-07-29 02:28:37 +09:00
Hajime Hoshi
563f2e0e0b all: update Oto 2024-07-28 20:20:13 +09:00
Hajime Hoshi
09b41846f9 all: update Oto (bug fix) 2024-07-28 17:13:13 +09:00
Hajime Hoshi
b6d5b8a1a6 all: update Oto (use AudioWorklet)
Updates ebitengine/oto#241
2024-07-28 16:34:01 +09:00
Hajime Hoshi
d086e83a62 internal/shader: stabilize wasm tests on GitHub CI 2024-07-26 03:16:34 +09:00
Hajime Hoshi
5d47863a27 internal/shader: bug fix: untyped const bool couldn't be an if condition
Closes #2993
2024-07-26 02:09:16 +09:00
Hajime Hoshi
09cefc6e71 internal/shader: bug fix: crash with an invalid operand
Closes #2989
2024-07-26 00:06:12 +09:00
Hajime Hoshi
268b638a15 examples/realtimepcm: use NewPlayerF32
Updates #2160
2024-07-23 01:06:44 +09:00
Hajime Hoshi
fa457f67cd examples/realtimepcm: refactoring 2024-07-23 01:01:28 +09:00
Hajime Hoshi
ce6931f81c examples/piano: use NewPlayerF32FromBytes
Updates #2160
2024-07-22 23:29:52 +09:00
Hajime Hoshi
a12e32faf9 examples/pcm: use NewPlayerF32FromBytes
Updates #2160
2024-07-22 23:29:50 +09:00
Hajime Hoshi
fd382d26ae examples/sinewave: refactoring 2024-07-22 23:29:50 +09:00
Hajime Hoshi
f717844076 examples/sinewave: use NewPlayerF32
Updates #2160
2024-07-22 23:29:48 +09:00
Hajime Hoshi
e2a93b5d30 examples/video: use NewPlayerF32
Updates #2160
2024-07-22 23:29:45 +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
abc056ab29 internal/gamepad: refactoring 2024-07-21 09:10:04 +09:00
Hajime Hoshi
faa0172521 all: update golang.org/x/tools 2024-07-21 03:12:32 +09:00
Hajime Hoshi
7ab9382424 internal/gamepad: bug fix: crash when XInput and DInput gamepads were connected
Closes #3047
2024-07-20 22:30:38 +09:00
Hajime Hoshi
687e505db0 internal/gamepad: specify dwHow explicitly
As _DIPH_DEVICE is 0, this worked even without setting it, but this
was less readable.
2024-07-20 19:37:53 +09:00
Hajime Hoshi
b6b08f4fce internal/gamepad: typo 2024-07-20 19:21:09 +09:00
Hajime Hoshi
122877c265 internal/gamepad: bug fix: GUID was not reliable as a unique identifier
Use a HID path as a gamepad unique identifier instead.

Closes #3046
2024-07-20 19:17:57 +09:00
cowboy.macke
3a6aaac5ac
internal/ui: bug fix: crash by dropping an HTML element onto the canvas (#3044)
Closes #3043
2024-07-18 17:19:21 +09:00
Hajime Hoshi
839cb9a724 .github/workflows: update Go 1.23 2024-07-17 10:38:35 +09:00
Hajime Hoshi
1804d56777 Revert "all: open up for more destinations images (#3013)"
This reverts commit 46d171c3c5.

Reason: MRT is now suspended. Let's revisit this when we work on MRT again.
2024-07-16 22:43:49 +09:00
Hajime Hoshi
f9b0451e08 internal/ui: call setRunning(true) at a more appropriate timing 2024-07-15 22:52:50 +09:00
Hajime Hoshi
38d6328e41 internal/ui: bug fix: crash on Windows
Updates #3042
2024-07-15 22:44:45 +09:00
Hajime Hoshi
3d385ef0aa internal/ui: refactoring: call initOnMainThread on the main thread explicitly
Closes #3042
2024-07-15 22:07:47 +09:00