Skip to main content

load_sound

Function load_sound 

Source
pub fn load_sound(
    archive: &Archive,
    reference: &str,
) -> Result<(Pcm, bool), String>
Expand description

Load and decode a sound by resource reference (e.g. Audio\\Music\\Menu.rsc:music), reading the .str stream of streamed music. Returns the samples and the resource’s loop flag.