Skip to main content

format_problem

Function format_problem 

Source
pub fn format_problem(name: &str, bytes: &[u8]) -> Option<String>
Expand description

Why bytes (a file named name) isn’t something the game can play: its content must match its extension (OGG Vorbis for .ogg, PCM or float WAV for .wav), with one or two channels at SAMPLE_RATE. quad-snd panics on native, and never finishes loading on the web, on a file it can’t read, so this runs before any file ships.