From 2409cd5538bd707907b5fe0ef6e7aafb7667084a Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Fri, 25 Jun 2021 21:29:37 +0100 Subject: [PATCH] Remove `.high_priority()` --- agb/src/sound/mixer/mod.rs | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/agb/src/sound/mixer/mod.rs b/agb/src/sound/mixer/mod.rs index 4eda79ee..2ceb6349 100644 --- a/agb/src/sound/mixer/mod.rs +++ b/agb/src/sound/mixer/mod.rs @@ -50,6 +50,18 @@ impl SoundChannel { } } + pub fn new_high_priority(data: &'static [u8]) -> Self { + SoundChannel { + data, + pos: 0.into(), + should_loop: false, + playback_speed: 1.into(), + panning: 0.into(), + is_done: false, + priority: SoundPriority::High, + } + } + pub fn should_loop<'a>(&'a mut self) -> &'a mut Self { self.should_loop = true; self @@ -67,9 +79,4 @@ impl SoundChannel { self.panning = panning; self } - - pub fn high_priority<'a>(&'a mut self) -> &'a mut Self { - self.priority = SoundPriority::High; - self - } }