core: Rename `collect_sound_stream` to `cleanup_sound_stream`
This commit is contained in:
parent
6e3c468592
commit
51c8799b32
|
@ -517,7 +517,7 @@ impl<'gc> NetStream<'gc> {
|
||||||
///
|
///
|
||||||
/// Intended to be called at the start of tag processing, before any new
|
/// Intended to be called at the start of tag processing, before any new
|
||||||
/// audio data has been streamed.
|
/// audio data has been streamed.
|
||||||
fn collect_sound_stream(
|
fn cleanup_sound_stream(
|
||||||
self,
|
self,
|
||||||
context: &mut UpdateContext<'_, 'gc>,
|
context: &mut UpdateContext<'_, 'gc>,
|
||||||
write: &mut NetStreamData<'gc>,
|
write: &mut NetStreamData<'gc>,
|
||||||
|
@ -801,7 +801,7 @@ impl<'gc> NetStream<'gc> {
|
||||||
#![allow(clippy::explicit_auto_deref)] //Erroneous lint
|
#![allow(clippy::explicit_auto_deref)] //Erroneous lint
|
||||||
let mut write = self.0.write(context.gc_context);
|
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 slice = write.buffer.to_full_slice();
|
||||||
let buffer = slice.data();
|
let buffer = slice.data();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue