Skip to main content

decode_song_position

Function decode_song_position 

Source
pub fn decode_song_position(lsb: u8, msb: u8) -> Result<u16, AudioError>
Expand description

Decode the two SPP data bytes back into a MIDI-beat position.

Errors with AudioError::InvalidParameter if either byte has its high bit set (data bytes must be 7-bit).