[−][src]Struct mod_player::PlayerState
Keeps track of all the dynamic state required for playing the song.
Fields
current_line: u32current line position in the pattern. Every pattern has 64 lines
song_has_ended: boolset when the song stops playing
has_looped: boolset when the song loops. The player does not unset this flag after it has been set. To detect subsequent loops the flag to be manually unset by the client
Methods
impl PlayerState[src]
pub fn new(num_channels: u32, device_sample_rate: u32) -> PlayerState[src]
pub fn get_song_line<'a>(&self, song: &'a Song) -> &'a Vec<Note>[src]
Auto Trait Implementations
impl Send for PlayerState
impl Sync for PlayerState
Blanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> From for T[src]
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,