Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avm2: Fix panic on loading sounds multiple times #19586

Merged
merged 3 commits into from
Feb 22, 2025

Conversation

kjarosh
Copy link
Member

@kjarosh kjarosh commented Feb 21, 2025

Sound can be loaded only once, future calls of .load() throw exceptions. Other .load*() methods do not throw exceptions but set the sound instead if not already loaded.

@kjarosh kjarosh added A-avm2 Area: AVM2 (ActionScript 3) T-fix Type: Bug fix (in something that's supposed to work already) waiting-on-review Waiting on review from a Ruffle team member labels Feb 21, 2025
@kjarosh kjarosh force-pushed the sound-load-multiple branch from 1d7fe2a to 98b1c52 Compare February 22, 2025 20:27
@kjarosh kjarosh enabled auto-merge (rebase) February 22, 2025 20:28
@kjarosh kjarosh removed the waiting-on-review Waiting on review from a Ruffle team member label Feb 22, 2025
Sound can be loaded only once, future calls of .load() throw exceptions.
Other .load*() methods do not throw exceptions but set the sound instead
if not already loaded.
This test verifies the behavior of calling load methods multiple times.
@kjarosh kjarosh force-pushed the sound-load-multiple branch from 98b1c52 to 55f2968 Compare February 22, 2025 21:20
@kjarosh kjarosh merged commit e7cecf9 into ruffle-rs:master Feb 22, 2025
22 checks passed
@kjarosh kjarosh deleted the sound-load-multiple branch February 22, 2025 21:36
Hancock33 added a commit to Hancock33/batocera.piboy that referenced this pull request Feb 23, 2025
------------------------------------------------------------------------------------------
dolphin-emu.mk 6d9c887a214f4fec16779f9ecbec555948ef94cd # Version: Commits on Feb 23, 2025
------------------------------------------------------------------------------------------
Merge pull request #13365 from jordan-woyak/si-disco

SI: Set NOREP, ERRSTAT, and ERRLATCH when GetData returns false.,

---------------------------------------------------------------------------------------------
dosbox-staging.mk c43233c55abc31fd23cd3bd48086c7228ae658d7 # Version: Commits on Feb 22, 2025
---------------------------------------------------------------------------------------------
website: Add 0.82.1 release notes draft,

----------------------------------------------------
pcsx2.mk v2.3.171 # Version: Commits on Feb 23, 2025
----------------------------------------------------
- [GS/HW: Increase Merge Sprite paving sensitivity to avoid mismerges](PCSX2/pcsx2#12345)

,

---------------------------------------------------------------
ruffle.mk nightly-2025-02-23 # Version: Commits on Feb 23, 2025
---------------------------------------------------------------
## What's Changed

* chore: Update translations by @RuffleBuild in ruffle-rs/ruffle#19573

* render: Remove `Rc` around `wgpu` objects by @a1phyr in ruffle-rs/ruffle#19587

* AVM2: Partially support parentAllowsChild when domains match by @adrian17 in ruffle-rs/ruffle#19521

* render: Switch to wgpu fork with backported GLES limits fix by @adrian17 in ruffle-rs/ruffle#19512

* avm2: Fix panic on loading sounds multiple times by @kjarosh in ruffle-rs/ruffle#19586

* avm2: Various fixes and code improvements by @Lord-McSweeney in ruffle-rs/ruffle#19589

* core: Rename display objects' `static_data` field to `shared` by @moulins in ruffle-rs/ruffle#19595

**Full Changelog**: ruffle-rs/ruffle@nightly-2025-02-22...nightly-2025-02-23,

-----------------------------------------------------
ryujinx.mk 1.2.414 # Version: Commits on Feb 23, 2025
-----------------------------------------------------
# Canary builds:

These builds are experimental and may sometimes not work, use [regular builds](https://github.com/Ryubing/Ryujinx/releases/latest) instead if that sounds like something you don't want to deal with.

| Platform | Artifact |

|--|--|

| Windows 64-bit | [Canary Windows Artifact](https://github.com/Ryubing/Canary-Releases/releases/download/1.2.414/ryujinx-canary-1.2.414-win_x64.zip) |

| Linux 64-bit | [Canary Linux Artifact](https://github.com/Ryubing/Canary-Releases/releases/download/1.2.414/ryujinx-canary-1.2.414-linux_x64.tar.gz) |

| Linux ARM 64-bit | [Canary Linux ARM Artifact](https://github.com/Ryubing/Canary-Releases/releases/download/1.2.414/ryujinx-canary-1.2.414-linux_arm64.tar.gz) |

| macOS | [Canary macOS Artifact](https://github.com/Ryubing/Canary-Releases/releases/download/1.2.414/ryujinx-canary-1.2.414-macos_universal.app.tar.gz) |

**Full Changelog**: Ryubing/Ryujinx@Canary-1.2.413...Canary-1.2.414

--------------------------------------------------------------------------------------
shadps4.mk 4f1baece33c6c324a14b22508d5755f7ac6885dd # Version: Commits on Feb 23, 2025
--------------------------------------------------------------------------------------
Avoid processing job buffers before codec initialization (#2507),

---------------------------------------------------------------------------------------
thextech.mk 5e0a4675c3c010d0727d7dc300ad425fbe64e3e8 # Version: Commits on Feb 23, 2025
---------------------------------------------------------------------------------------
frm_main.cpp: temporarily revert forced exclusive fullscreen,

---------------------------------------------------------------------------------------
corsixth.mk 1659cac64c5b0e6b642b6ae5dd4e187ec5139e97 # Version: Commits on Feb 22, 2025
---------------------------------------------------------------------------------------
Merge pull request #2782 from lewri/lightness_typo

Fix typo in lightness calculation,

--------------------------------------------------------------------------------------
eduke32.mk 1357a62291ad506a33b6efb3d67fa856bec81cae # Version: Commits on Feb 11, 2025
--------------------------------------------------------------------------------------
Add includeoptional CON token, that doesn't error out if the included file is absent.

---------------------------------------------------------------------------------------
etlegacy.mk d84858eb911f1264fe46c7466f78d1edb365eefa # Version: Commits on Feb 23, 2025
---------------------------------------------------------------------------------------
app: add missing incrementation, we have working theme switcher,

----------------------------------------------------------------------------------------
doomretro.mk 4da8df39c311386c6e7fd6f36c4dcbdfe6cd458e # Version: Commits on Feb 23, 2025
----------------------------------------------------------------------------------------
Fix pressing use key to accelerate intermission sometimes failing,

------------------------------------------------------------------------------------------
xash3d-fwgs.mk ccf342f4fe94c442f65be83ab82accd4cfad8eff # Version: Commits on Feb 23, 2025
------------------------------------------------------------------------------------------
engine: client: fix inconsistent mouse state caused by mis-use of touch_emulate by cs16-client,

------------------------------------------------------------------------------------------------
libretro-nestopia.mk 72003d06eb9fbc2191f5a7a874abc039bde3157f # Version: Commits on Feb 23, 2025
------------------------------------------------------------------------------------------------
limit paddle range (#96)

Add options for the range so users can match it exactly to the game,

--------------------------------------------------------------------------------------------
libretro-pcsx.mk 73a3ca2ca468dbc6bd8c524c9709617662d5b105 # Version: Commits on Feb 23, 2025
--------------------------------------------------------------------------------------------
Merge branch 'master' into libretro,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-avm2 Area: AVM2 (ActionScript 3) T-fix Type: Bug fix (in something that's supposed to work already)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants