Commit Graph

9823 Commits

Author SHA1 Message Date
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
Hajime Hoshi
d4dc2ef5d7 internal/ui: refactoring: remove an unused member 2024-07-15 21:53:07 +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
cde4c4fd2e exp/textinput: bug fix: don't send events on Enter on desktop browsers
Apparently sending an event on pressing Enter on desktops could sometimes
duplicate texts.

Closes #3041
2024-07-15 01:01:16 +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
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
9bc5ed3847 internal/graphicscommand: bug fix: missing file
Updates #3036
2024-07-12 11:30:36 +09:00
Hajime Hoshi
7b46df44ee internal/graphicscommand: bug fix: buffered write pixel args might never be released
Closes #3036
2024-07-12 11:25:50 +09:00
Bertrand Jung
46d171c3c5
all: open up for more destinations images (#3013)
Updates #2930
2024-07-09 02:05:55 +09:00
Hajime Hoshi
23a143459c all: update bitmapfont to v3.2.0-alpha.3 2024-07-09 00:31:55 +09:00
Hajime Hoshi
f8e3bef368 audio/internal/convert: refactoring: move utilities to audio/vorbis 2024-07-07 17:03:11 +09:00
Hajime Hoshi
343fd7084f all: update golang.org/x/sys 2024-07-07 01:09:56 +09:00
Hajime Hoshi
1679555bbb internal/ui: fix a wrong comment 2024-07-07 01:05:40 +09:00