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 - } }