From f53804c5d0dd54431014aaf408dc257b08147cbf Mon Sep 17 00:00:00 2001 From: ChrisCPI <92183829+ChrisCPI@users.noreply.github.com> Date: Fri, 17 Jul 2026 12:50:59 -0400 Subject: [PATCH] avm1: Remove stub from `Sound.setPosition()` to act as a no-op I've been trying a bunch of different things, but it doesn't appear that this function does anything in Flash Player. Probably a similar case to `setDuration()`. --- core/src/avm1/globals/sound.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/src/avm1/globals/sound.rs b/core/src/avm1/globals/sound.rs index dd807d74ee998..1a7897808cc82 100644 --- a/core/src/avm1/globals/sound.rs +++ b/core/src/avm1/globals/sound.rs @@ -791,10 +791,9 @@ fn stop<'gc>( } fn set_position<'gc>( - activation: &mut Activation<'_, 'gc>, + _activation: &mut Activation<'_, 'gc>, _this: Object<'gc>, _args: &[Value<'gc>], ) -> Result, Error<'gc>> { - avm1_stub!(activation, "Sound", "setPosition"); Ok(Value::Undefined) }