aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Silas Bartha <[email protected]>2024-09-09 21:15:35 -0400
committerLibravatar Silas Bartha <[email protected]>2024-09-09 21:15:35 -0400
commitbe3a5782fcfbcbd8498674ba80538db61fd40512 (patch)
tree776f0a0db92207a037c6abfe8b8e411c6adf2e2c
parent128573aa260644424e834e04ac08dd236736bf5d (diff)
Add extensions to loader
-rw-r--r--src/assets.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/assets.rs b/src/assets.rs
index 5f0e08b..2d2206c 100644
--- a/src/assets.rs
+++ b/src/assets.rs
@@ -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