Add extensions to loader
This commit is contained in:
parent
128573aa26
commit
be3a5782fc
@ -41,6 +41,10 @@ impl AssetLoader for MidiAssetLoader {
|
||||
reader.read_to_end(&mut bytes).await?;
|
||||
Ok(MidiAudio { midi: bytes })
|
||||
}
|
||||
|
||||
fn extensions(&self) -> &[&str] {
|
||||
&["mid", "midi"]
|
||||
}
|
||||
}
|
||||
|
||||
/// Decoder for MIDI file playback
|
||||
|
Loading…
x
Reference in New Issue
Block a user