Skip to main content
← PSoXide SDK guides and examples · SDK f2fec1c301f1 · All Cargo features enabled; check feature gates before use.

play

Function play 

Source
pub fn play(
    movie: &Movie,
    config: &Config,
    memory: &mut [u32],
    poll: &mut dyn FnMut() -> bool,
) -> Outcome
Expand description

Play movie until it ends or poll returns true (checked once per VBlank, e.g. for a skip button). memory must hold at least memory_words words and is free again on return. At 15 bits the last frame stays on screen (the display start may be any of the three buffers); at 24 bits every buffer is cleared to black and the caller’s display mode is restored. The drive is stopped and the CD audio volume left at 0.