core: Rename `collect_sound_stream` to `cleanup_sound_stream`

This commit is contained in:
David Wendt 2023-08-22 23:14:13 -04:00 committed by kmeisthax
parent 6e3c468592
commit 51c8799b32
1 changed files with 2 additions and 2 deletions

View File

@ -517,7 +517,7 @@ impl<'gc> NetStream<'gc> {
///
/// Intended to be called at the start of tag processing, before any new
/// audio data has been streamed.
fn collect_sound_stream(
fn cleanup_sound_stream(
self,
context: &mut UpdateContext<'_, 'gc>,
write: &mut NetStreamData<'gc>,
@ -801,7 +801,7 @@ impl<'gc> NetStream<'gc> {
#![allow(clippy::explicit_auto_deref)] //Erroneous lint
let mut write = self.0.write(context.gc_context);
self.collect_sound_stream(context, &mut write);
self.cleanup_sound_stream(context, &mut write);
let slice = write.buffer.to_full_slice();
let buffer = slice.data();