Open Topppy opened 5 years ago
The mp3 files are instrument samples for the various instruments that the music extension provides. They are not loaded by the client until the music extension is loaded, I believe.
Thanks @topppy. Splitting assets out from our main bundle is something we have been discussing quite a bit lately. Stay tuned!
/cc @paulkaplan @rschamp @ericrosenbaum @mzgoddard
Here is the previous attempt to be address this: https://github.com/LLK/scratch-vm/pull/1144/
The best way to fix this issue would be to use a JavaScript library for MIDI synthesizers and use that to run the music rather than the preset sounds.
using bundle analyzer ,we found the bundle contains many .mp3 files from scratch-vm/src/extensions/scratch3_music/assets/, about 3Mkbs big. Is it necessary to bundle these music files into lib.js ? How can i lazy load them?