mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 00:31:34 +11:00
Add should_loop option
This commit is contained in:
parent
46683e42c8
commit
d7a8928955
|
@ -39,11 +39,16 @@ impl Mixer {
|
||||||
struct SoundChannel {
|
struct SoundChannel {
|
||||||
data: &'static [u8],
|
data: &'static [u8],
|
||||||
pos: usize,
|
pos: usize,
|
||||||
|
should_loop: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl SoundChannel {
|
impl SoundChannel {
|
||||||
fn new(data: &'static [u8]) -> Self {
|
fn new(data: &'static [u8], should_loop: bool) -> Self {
|
||||||
SoundChannel { data, pos: 0 }
|
SoundChannel {
|
||||||
|
data,
|
||||||
|
pos: 0,
|
||||||
|
should_loop,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue