pub struct Channel {
pub gain: u8,
/* private fields */
}
Fields
gain: u8
Implementations
sourceimpl Channel
impl Channel
pub fn new() -> SharedChannel
pub fn play_pos(&mut self) -> Option<(u32, u32)>
pub fn play(
&mut self,
sounds: Vec<SharedSound>,
start_tick: Option<u32>,
should_loop: bool
)
pub fn play1(
&mut self,
sound: SharedSound,
start_tick: Option<u32>,
should_loop: bool
)
pub fn stop(&mut self)
Auto Trait Implementations
impl RefUnwindSafe for Channel
impl Send for Channel
impl Sync for Channel
impl Unpin for Channel
impl UnwindSafe for Channel
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more