Add extensions to loader

This commit is contained in:
Silas Bartha 2024-09-09 21:15:35 -04:00
parent 128573aa26
commit be3a5782fc
Signed by: soaos
GPG Key ID: 9BD3DCC0D56A09B2

View File

@ -41,6 +41,10 @@ impl AssetLoader for MidiAssetLoader {
reader.read_to_end(&mut bytes).await?; reader.read_to_end(&mut bytes).await?;
Ok(MidiAudio { midi: bytes }) Ok(MidiAudio { midi: bytes })
} }
fn extensions(&self) -> &[&str] {
&["mid", "midi"]
}
} }
/// Decoder for MIDI file playback /// Decoder for MIDI file playback