BetterAudio plugin (lag-reducing and major improvements)

@Oscar92player please de-activate my plugin and test the first bug again, as I suspect that this plugin is not the cause. If not, please, I ask you by PM a video-record or mini-project (empty) demo, as I can not figure what is happening.

The second one, it is just like you said. Also, if you change the battle music, for now, I didn't detect the change. I will try it to improve asap.

EDIT2: About your edit2, this is not a problem of my plugin, but with the audio system itself, If you deactivate the plugin this will happen too. At least I believe so. You need to erase a parallel process if you use it only to change the audio. The plugin has a max-number of preload audio files so when you repeteadly load an audio file, the older is deleted. Also, console.log caused by the debug option has high CPU consumption, so please deactivate de debug mode of my plugin when you deploy your game.
@Oscar92player please de-activate my plugin and test the first bug again, as I suspect that this plugin is not the cause. If not, please, I ask you by PM a video-record or mini-project (empty) demo, as I can not figure what is happening.

The second one, it is just like you said. Also, if you change the battle music, for now, I didn't detect the change. I will try it to improve asap.

EDIT2: About your edit2, this is not a problem of my plugin, but with the audio system itself, If you deactivate the plugin this will happen too. At least I believe so. You need to erase a parallel process if you use it only to change the audio. The plugin has a max-number of preload audio files so when you repeteadly load an audio file, the older is deleted. Also, console.log caused by the debug option has high CPU consumption, so please deactivate de debug mode of my plugin when you deploy your game.

The first issue didn't happen before the plugin was installed, so I tried to disable it after the test, and it was as I thought, that the issue dissapears. I think it could be an incompatibility with other plugins, but searching for it could be difficult... I have a lot of plugins installed...

Thanks about the second issue, it will be a great improvement.

About the third issue, I didn't know about that. And sure, the console takes a lot of memory and CPU usage. It also lags the game...
@Oscar92player I updated the plugin with support for first-random encounters (requires Preemp. boot/map cache option on), and to detect battle music changes.
* v0.9.0 Preload battle BGM and ME changes in events.
* v0.8.5 Refresh battle BGM cache on map changes.

For now, I can not reproduce your bug with battle animations, thus I can not solve it.
Thank you so much! I was looking a plugin about audio pause plugin because I was making an opening scene for my game. It works for 1.6.1 of mine.
I know it's sounds old, but I want know that when I am deploy android, and I used ogg file only (no m4a), do you think it will work if I use mobile? because when I deploy android, it required me to use m4a.
Anybody have tips on why this plugin makes Quasi Audio only able to play one BGS at a time? AudioStreaming.js doesn't have this issue, but it will randomly stop playing audio...

EDIT: I think I fixed the issue. The SRD Preloader was caching the BGM etc. so this plugin or AudioStreaming.js couldn't stream it correctly. Also it was causing QuasiAudio to not be able to play multiple BGS etc. at once.

Original thread: https://forums.rpgmakerweb.com/threads/betteraudio-plugin-lag-reducing-and-major-improvements.120169/