[][src]Function mod_player::next_sample

pub fn next_sample(song: &Song, player_state: &mut PlayerState) -> (f32, f32)

Calculates the next sample pair (left, right) to be played from the song. The returned samples have the range [-1, 1]