Make SoundChannel public

This commit is contained in:
Gwilym Kuiper 2021-06-06 11:53:31 +01:00
parent d7a8928955
commit f126c7f4f4

View file

@ -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,