Remove .high_priority()

This commit is contained in:
Gwilym Kuiper 2021-06-25 21:29:37 +01:00
parent 45b8480a35
commit 2409cd5538

View file

@ -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 { pub fn should_loop<'a>(&'a mut self) -> &'a mut Self {
self.should_loop = true; self.should_loop = true;
self self
@ -67,9 +79,4 @@ impl SoundChannel {
self.panning = panning; self.panning = panning;
self self
} }
pub fn high_priority<'a>(&'a mut self) -> &'a mut Self {
self.priority = SoundPriority::High;
self
}
} }