mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-11 09:31:34 +11:00
Add option to mark sound as stereo
This commit is contained in:
parent
e92383e29c
commit
4f0b01b932
|
@ -35,6 +35,8 @@ pub struct SoundChannel {
|
|||
panning: Num<i16, 4>, // between -1 and 1
|
||||
is_done: bool,
|
||||
|
||||
is_stereo: bool,
|
||||
|
||||
priority: SoundPriority,
|
||||
}
|
||||
|
||||
|
@ -49,6 +51,7 @@ impl SoundChannel {
|
|||
is_done: false,
|
||||
priority: SoundPriority::Low,
|
||||
volume: 1.into(),
|
||||
is_stereo: false,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -62,6 +65,7 @@ impl SoundChannel {
|
|||
is_done: false,
|
||||
priority: SoundPriority::High,
|
||||
volume: 1.into(),
|
||||
is_stereo: false,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -91,6 +95,12 @@ impl SoundChannel {
|
|||
self
|
||||
}
|
||||
|
||||
pub fn stereo(&mut self) -> &mut Self {
|
||||
self.is_stereo = true;
|
||||
|
||||
self
|
||||
}
|
||||
|
||||
pub fn stop(&mut self) {
|
||||
self.is_done = true
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue