visual-song 0.14.6 → 0.14.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6262,11 +6262,8 @@ function useVisualSongAudio(file) {
|
|
|
6262
6262
|
const arrayBuffer = e.target.result;
|
|
6263
6263
|
const filePath = MUSIC_ROOT_PATH + file.name;
|
|
6264
6264
|
module.FS.writeFile(filePath, new Uint8Array(arrayBuffer));
|
|
6265
|
-
|
|
6265
|
+
module.SoundManager.getInstance().load(filePath);
|
|
6266
6266
|
module.FS.unlink(filePath);
|
|
6267
|
-
if (ok) {
|
|
6268
|
-
module.SoundManager.getInstance().play();
|
|
6269
|
-
}
|
|
6270
6267
|
};
|
|
6271
6268
|
reader.readAsArrayBuffer(file);
|
|
6272
6269
|
};
|