From f126c7f4f425c4371b8c20aa536a7b4562aaef34 Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Sun, 6 Jun 2021 11:53:31 +0100 Subject: [PATCH] Make SoundChannel public --- agb/src/sound/mixer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agb/src/sound/mixer.rs b/agb/src/sound/mixer.rs index 78c11d8a..859080f3 100644 --- a/agb/src/sound/mixer.rs +++ b/agb/src/sound/mixer.rs @@ -36,14 +36,14 @@ impl Mixer { } } -struct SoundChannel { +pub struct SoundChannel { data: &'static [u8], pos: usize, should_loop: bool, } impl SoundChannel { - fn new(data: &'static [u8], should_loop: bool) -> Self { + pub fn new(data: &'static [u8], should_loop: bool) -> Self { SoundChannel { data, pos: 0,