5 Commits
Author SHA1 Message Date
dualfroz ecb0c10f07 audio: rename the context disposal to close, like the other unexported close methods 2026-10-05 16:19:48 +02:00
dualfroz 4300b92d4b audio: pair locks with defer and move the disposal of a context to audio.go 2026-10-04 12:56:43 +02:00
dualfroz fab8fc22e0 audio: run TestPlayOnIdleContext on the fake clock of synctest
The test was added after the survey in #3716, and waits on real time in
the same way.

Updates #3716
2026-10-03 16:06:04 +02:00
dualfroz d22b1a2b09 audio: run the tests waiting on real time on the fake clock of synctest
TestGC, TestSameSourcePlayers, TestDeferredDeviceCreation,
TestPauseAndStopReading, TestPauseAndStopReadingWhilePaused,
TestPositionNotGrowingAfterFinished and
TestPlayerErrorDoesNotStopOtherPlayers now run in a synctest bubble, so
their sleeps and deadlines take no real time.

A bubble must not leave goroutines behind, so ResetContextForTesting
now stops the goroutine updating the players and the dummy players
reading their sources, and waits for them to exit. Before, every test
leaked them.

Updates #3716
2026-10-03 16:06:04 +02:00
upstream 87bac3749b Upstream hajimehoshi/ebiten state of the touched files before 040fcc781c 2026-10-02 16:34:40 +02:00