diff --git a/core/src/backend/audio.rs b/core/src/backend/audio.rs index d00338cbc5d9..c7a3a42de304 100644 --- a/core/src/backend/audio.rs +++ b/core/src/backend/audio.rs @@ -98,11 +98,8 @@ pub trait AudioBackend: Downcast { /// Starts playing a "stream" sound, which is an audio stream that is distributed /// among the frames of a Flash MovieClip. - /// - /// NOTE: `clip_frame` is no longer used on any backend. fn start_stream( &mut self, - clip_frame: u16, clip_data: crate::tag_utils::SwfSlice, handle: &swf::SoundStreamHead, ) -> Result; @@ -267,7 +264,6 @@ impl AudioBackend for NullAudioBackend { fn start_stream( &mut self, - _clip_frame: u16, _clip_data: crate::tag_utils::SwfSlice, _handle: &swf::SoundStreamHead, ) -> Result { @@ -536,7 +532,7 @@ impl<'gc> AudioManager<'gc> { stream_info: &swf::SoundStreamHead, ) -> Option { if self.sounds.len() < Self::MAX_SOUNDS { - let handle = audio.start_stream(clip_frame, data, stream_info).ok()?; + let handle = audio.start_stream(data, stream_info).ok()?; let instance = SoundInstance { sound: None, instance: handle, diff --git a/core/src/backend/audio/mixer.rs b/core/src/backend/audio/mixer.rs index db08b1e29171..081865fe5c1b 100644 --- a/core/src/backend/audio/mixer.rs +++ b/core/src/backend/audio/mixer.rs @@ -554,7 +554,6 @@ impl AudioMixer { /// Starts a timeline audio stream. pub fn start_stream( &mut self, - _clip_frame: u16, clip_data: SwfSlice, stream_info: &swf::SoundStreamHead, ) -> Result { @@ -1089,11 +1088,10 @@ macro_rules! impl_audio_mixer_backend { #[inline] fn start_stream( &mut self, - clip_frame: u16, clip_data: $crate::tag_utils::SwfSlice, stream_info: &swf::SoundStreamHead, ) -> Result { - self.$mixer.start_stream(clip_frame, clip_data, stream_info) + self.$mixer.start_stream(clip_data, stream_info) } #[inline]