pub struct Channel {
pub sounds: Vec<Sound>,
pub gain: Gain,
pub detune: Detune,
/* private fields */
}Fields§
§sounds: Vec<Sound>§gain: Gain§detune: DetuneImplementations§
Source§impl Channel
impl Channel
pub fn new() -> SharedChannel
pub fn play( &mut self, sounds: Vec<SharedSound>, start_tick: Option<u32>, should_loop: bool, should_resume: bool, )
pub fn play1( &mut self, sound: SharedSound, start_tick: Option<u32>, should_loop: bool, should_resume: bool, )
pub fn stop(&mut self)
pub fn play_pos(&mut self) -> Option<(u32, u32)>
Auto Trait Implementations§
impl Freeze for Channel
impl RefUnwindSafe for Channel
impl Send for Channel
impl Sync for Channel
impl Unpin for Channel
impl UnwindSafe for Channel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more