OcRam - Audio_EX plugin (for MV)

Hi @OcRam !

First of all thanks for the great plugin, it makes the maps much more atmospheric!

But unfortunately have a bug:

Code:
rpg_managers.js:1949 RangeError: Maximum call stack size exceeded
    at Function.AudioManager.fadeOutBgs (OcRam_Audio_EX.js:1)
    at Function.AudioManager.fadeOutBgs (OcRam_Audio_EX.js:1467)
    at Function.AudioManager.fadeOutBgs (OcRam_Audio_EX.js:1467)
    at Function.AudioManager.fadeOutBgs (OcRam_Audio_EX.js:1467)
    at Function.AudioManager.fadeOutBgs (OcRam_Audio_EX.js:1467)
    at Function.AudioManager.fadeOutBgs (OcRam_Audio_EX.js:1467)
    at Function.AudioManager.fadeOutBgs (OcRam_Audio_EX.js:1467)
    at Function.AudioManager.fadeOutBgs (OcRam_Audio_EX.js:1467)
    at Function.AudioManager.fadeOutBgs (OcRam_Audio_EX.js:1467)
    at Function.AudioManager.fadeOutBgs (OcRam_Audio_EX.js:1467)

The bug occurs here when I want to hide BGS and BGM during a map transition. I use the maker command for this, no call. I use the latest version of the plugin 2.12. Do you have any idea what the problem is?

Thank you very much!
I'm having the same problem. It is difficult to replicate this since it sometimes feels like it's happening out of nowhere.
Since @OcRam didn't reply to this for a while I've tried to get to the source of the problem and it seems it is caused by excessive recursive function calls or an infinite loop.
So I guess each time you get close a sound source a new instance is opened or modified (it get's louder or quieter) and this isn't cleared. so at some point the maximum size is reached and the error you have linked pops up.

I wish I knew how to fix this, but I'm not familiar with plugin editing and don't know how to do it.
I've been using the erase_bgs * on many of my map transitions now in hope of trying to fix this.
But it still happens.
So I hope OcRam takes another look at this problem and maybe he can find a way to fix it.
I'm not really sure how to get these plugin commands to work. I copy pasted the fire events from the demo and they work great but Pause, resume, erase, stop_bgs and fade do nothing to bgs called via plugin commands. The only way I can get my BGS to fade in is by putting it next to a weather change? I've tried them all in every way I can think of. Different channels, events. Plugins are in the same order as the demo and below all others. Debug mode shows no errors. The only thing that works is play_bgs2 or playing the normal way and using the comments for fade. That that worked about half of the time? It will at least start fading before just going to full volume in the middle of it. Any ideas?

Darkness plays in the native way but fade and pause do nothing.
Spoiler: logs
1700153847022.png

Spoiler: commands
This plays the bgs while without the 2 it doesn't
1700154480356.png

This doesn't erase while whitout the 2 it erases channel one bgs?
1700154515490.png

Here is a bunch of stuff I tried
1700154871004.png
I want to slowly fade in this bgs while another one fades out. In the future have mutiple bgs even on top of weather.
Hello,
this is a great plugin, thank you 🙂
I just have troubles to get some plugin commands to work.
Plugin Command: play_bgs2 Music 90 100 0 -> is working fine
But I can't fade it out.
I tried (plugin commands):
fadeout_bgs Music 1
fadeout_bgs2 Music 1
fadeout_bgs2 1
fadeout_bgs Music to 1 in 1
fadeout_bgs2 Music to 1 in 1
fadeout_bgs Music to 1 in 1 sec
fadeout_bgs2 Music to 1 in 1 sec
I'm out of ideas. How to fade out a BGS?
I do not know how to get the fading to work please tell me if I did something wrong for this one


<aex:d:12+8:10:pan:loop:forced>
I do not know how to get the fading to work please tell me if I did something wrong for this one


<aex:d:12+8:10:pan:loop:forced>
In MV version yes this should autoplay on map start dynamic BGS (based on distance where at 8 tiles it still 100% and 12 tiles volume is 0%) with autopanning and it does NOT necessarily start BGS if it is already played else where (though this depending on plugin parameter "Default create new (BGS)" if it is "true" then it should play bgs even if it is already playing).

So short answer: Syntax of event comment notation is correct, if you are using MV version of this plugin.

Edit: Though 4 tiles fading seems to me quite steep (12 - 8 = 4)?
ima be real I am not a math guy and barely understand stuff because I am a dummy.

I cannot read apparently there were instructions apologies. still confused on the fade.
Gracias señor! :LZSexcite::LZSexcite:

Original thread: https://forums.rpgmakerweb.com/threads/ocram-audio_ex-plugin-for-mv.108209/