ebiten/audio
Hajime Hoshi 2edb286ec4 audio/internal/oboe: Bug fix: Use-after-free of a player
In theory, a closed player was used unexpectedly by these steps:

  1. Suspend is called by switching the application
  2. Player_Close is called
  3. Resume is called by reactivating the application

The set of GetPlayersToResume() had a closed player and the trying to
play it caused the use-after-free problem.

This changes fixes the issue by removing the player from the set of
GetPlayerToResume() when closing it. iOS version already has the logic
to remove the player appropriately.

Updates #1645
Closes #1646
2021-05-16 02:21:00 +09:00
..
internal audio/internal/oboe: Bug fix: Use-after-free of a player 2021-05-16 02:21:00 +09:00
mp3 audio/mp3: Accept io.Reader instead of io.ReadSeeker 2021-04-24 16:39:49 +09:00
vorbis audio/vorbis: Catch the Seek error 2021-05-03 23:11:14 +09:00
wav audio/wav: Accept io.Reader instead of io.ReadSeeker 2021-04-24 16:35:28 +09:00
audio_test.go audio: Bug fix: Test failures on browsers 2021-03-22 03:50:05 +09:00
audio.go audio/internal/readerdriver: Enable to return error at Suspend/Resume 2021-05-04 23:18:16 +09:00
buffersize_js.go audio: Use the larget buffer size for go2cpp 2021-01-05 16:07:36 +09:00
buffersize_mobile.go audio: Use bigger buffers for mobiles 2018-06-09 18:14:18 +09:00
buffersize_notmobile.go audio: Use the larget buffer size for go2cpp 2021-01-05 16:07:36 +09:00
export_test.go audio: Bug fix: Compile error for tests 2021-05-10 04:03:58 +09:00
loop_test.go audio: Bug fix: NewInfiniteLoop(WithIntro) should work with incomplete values 2021-02-22 02:15:45 +09:00
loop.go audio: Bug fix: NewInfiniteLoop(WithIntro) should work with incomplete values 2021-02-22 02:15:45 +09:00
otodriver.go audio: Refactoring 2021-01-07 02:14:42 +09:00
readerplayer.go audio/internal/readerdriver: Change the returning type of UnplayedBufferSize int64 -> int 2021-05-10 03:22:19 +09:00
writerplayer.go audio: Bug fix: Deadlock at acquiring the semaphore 2021-01-23 23:07:19 +09:00