Love the audio engine, and i think i found a bug, after playing a (me) sound effect such as inn or victory all (se) sounds become max volume. I have an event that plays a rain sound effect after playing the inn me effect, this causes the volume to become max.
MUSH Audio Engine - Spatial Audio/Voice Acting/New Channels/etc.
JS Plugin Releases (RMMZ)That's weird. I'll take a look.
Here's an example on a fresh project. The volume i believe is being set to 100% after being played after an ME in an event?
Interestingly if you de-select the game window and re-select it before the game fades back in the Rain sound effect plays at the correct level?
You can manually fix it by manually setting the volume directly after.
I have done numerous play tests on my project and only now has this error message appeared.
I haven't changed the settings since I did the map over 18 months ago.
It doesn't show up when I transfer to the map, only if I load a save file while there. This, of course, might be why I've not seen it before, as it would be unusual for me to load a save file there.
This is my event command
It is for a simple waterfall that gets louder as you approach.
On a later map I have the same command with the same BGS for the same purpose. However, I haven't got there yet, and it is, as I say, the same BGS.
Any idea what's happening?
I haven't changed the settings since I did the map over 18 months ago.
It doesn't show up when I transfer to the map, only if I load a save file while there. This, of course, might be why I've not seen it before, as it would be unusual for me to load a save file there.
This is my event command
It is for a simple waterfall that gets louder as you approach.
On a later map I have the same command with the same BGS for the same purpose. However, I haven't got there yet, and it is, as I say, the same BGS.
Any idea what's happening?
@Kes That alert only appears when the plugin command is called despite the audio already being created and in the same channel. In this case, most likely the spatial audio is saved when you save and quit the game and automatically reloaded upon loading the save file (was an added feature in one of the older version but not the first version. There are some potential compatibility issues if loading an old save file if you updated the plugin). If the plugin command is called after reloading the game, this error will occur.
I think by default if you enter a map, have an event auto run and delete itself after one use, save and exit on that map, and reload the save file, the event is supposed to still be erased and not run a second time.
Is there something that might call the plugin command once you load the game?
I think by default if you enter a map, have an event auto run and delete itself after one use, save and exit on that map, and reload the save file, the event is supposed to still be erased and not run a second time.
Is there something that might call the plugin command once you load the game?
This is the only event calling that plugin command. As you can see from the screenshot, it is set up to erase after one use. It doesn't show, but it is an auto run event.
And just validating, which version of the plugin are you using?
version 1.07
Hmm, I'd say try updating to version 1.08 and seeing if the bug still occurs. If it does in your project, try replicating it on another map with the new version (meaning saving and loading with version 1.08). If it still occurs, try in a blank project. If it's fixed by then, it might be an issue with other plugins interacting with the map transition functions or saving/loading.
Updating to 1.08 seems to have cured it. I can now save, exit and reload on that map with no problem.
Thank you.
Thank you.
Hi, Been loving this plugin, although i have one specific problem.
I'm playing two separate BGMs on a parallel event. (One regular, and one with high pass)
I have a separate event fading the volumes in and out.
My problem is that it's very inconsistent on whether they are perfectly synced or not, sometimes they are, sometimes they're not (on different playtests with the same parameters).
I thought it might have been a loading issue so i added a wait command, but it doesn't seem to make any difference whether i have it or not, so i'm assuming it's something going on with the plugin?
Sorry in advance if the fix to this is really simple and i'm just stupid lol
Edit: I'm using the latest version, 1.08.
I'm playing two separate BGMs on a parallel event. (One regular, and one with high pass)
I have a separate event fading the volumes in and out.
My problem is that it's very inconsistent on whether they are perfectly synced or not, sometimes they are, sometimes they're not (on different playtests with the same parameters).
I thought it might have been a loading issue so i added a wait command, but it doesn't seem to make any difference whether i have it or not, so i'm assuming it's something going on with the plugin?
Sorry in advance if the fix to this is really simple and i'm just stupid lol
Edit: I'm using the latest version, 1.08.
Hi! Glad you're liking the plugin!
Unfortunately I didn't put in a function to effectively sync tracks when they are played. Sometimes the game takes a while to load in assets into memory when the game first uses them (latency depends on asset size and system of the user). You can sometime alliviate that if you preload the assets. I haven't tried for audio assets, but it works with graphic assets so I don't see why it would help for audio assets.
I also don't know if there's a delay between the execution of both plugin commands in the Game Interpreter (what handles commands in events). If there is, manually creating the spatial audios with a single script call may help.
Dunno why i didn't think of that. I used this plugin, and it fixed it. (In retrospect, i should have looked for general audio sync fixes first before asking here, lol.)
I think i can confirm that there isn't any delay between the execution of both plugin commands, cause if there was, it would have still been out of sync after i preloaded the audio.
Cheers!
Is there a way to make this work on a looping map?
Greetings,
Thank you for making such a wonderful plugin, I very much appreciate your work and also you offering this plugin to the community for free.
I have discovered a potential "bug" with saving and loading games with this plugin. If you have a BGM playing (initiated with Mush Audio Manager) with no auto-removal, and you load a save to a map that has a BGM attached to it by default (using the engine itself and not Mush), then the Mush BGM will keep playing over top of and in addition to the engine-set BGM.
To get around this, I have a common event ran on loading a save game that disables all Mush BGMs and BGS, which makes the audio effects on loading a save game seamless and work great. However, with this method, if I try to load a save on a map that has a Mush BGM (initiated with an autorun event on the map) then the BGM will start playing very quickly as soon as I press the confirm key on the save, run for a moment, then "blip out" (as a map is finished loading), then immediately start playing again.
Is there a way to making loading a Mush BGM not "blip" upon loading a map? It seems to me like it's saved the last Mush BGM played on that map somewhere and is replaying that saved track before the map itself is even loaded, then, once the map is loaded, running the autorun that's supposed to turn on the Mush BGM, which causes the "blip".
Edit:Turns out my hypothesis is more or less correct. I was able to fix this issue on my end by commenting out a section of the plugin, which thereby disables the saving and loading of Mush BGMs/BGSs.
Edit2: Looks like this change of mine causes crashes of it's own and also runs no Mush BGS or BGM when a save is loaded on a map. Would it be possible to add a feature to the plugin that stops currently playing Mush BGM & BGS when loading a save?
Just to be clear, in the base plugin, if you save on two different maps (Map A and Map C), one with a Mush BGM/BGS (Map C) and one with no Mush audio (Map A), if you load Map A while standing in Map C, Map C's Mush BGM/BGS will continue playing on their own. The Mush audio from Map C will also start playing before anything is loaded on screen if you load a save that has a Mush BGM (non-spatial).
Edit3:This issue will also compound on loads/saves and start to do strange things. If for example I have Map A with a BGS on channel 7, and load Map C that also has a BGS on channel 7, sometimes it will play Map C's BGS and sometimes it will play Map A's.
Edit4: Alright, I figured out the issue that is causing the wrong BGS to play on maps. This occurs when you have two saves, one on Map A, and one on Map C. As an example, if you, from the title screen, load a map that has a silent BGS on channel 5, then load a map with an active BGS on channel 5, it will play the BGS from the previous map instead of the BGS that should be played. For clarification, steps to reproduce this bug:
1) Make two saves, one on Map A that has a silent spatial BGS on channel 5, and the other on map C that has an active spatial BGS on channel 5.
2) Return to the title screen.
3) Load the save on Map A. Everything seems fine!
4) Load the save on Map C. The silent spatial BGS from Map A is now active and playing per the settings on Map C's spatial BGS, instead of the correct spatial BGS playing.
Edit5: Found another bug, unrelated to the above. Upon transferring maps, Mush spatial audio isn't starting up until the player has moved at least one tile. Even if the player *should* be within the radius of a spatial audio, it will not trigger until the player moves. This can be fixed by attaching a common event to map loads with the script command:
I am assuming what is happening here is that spatial audio with the plugin isn't set to run the above command until the player moves on any given map, and not also immediately when a new map is loaded.
Thank you for making such a wonderful plugin, I very much appreciate your work and also you offering this plugin to the community for free.
I have discovered a potential "bug" with saving and loading games with this plugin. If you have a BGM playing (initiated with Mush Audio Manager) with no auto-removal, and you load a save to a map that has a BGM attached to it by default (using the engine itself and not Mush), then the Mush BGM will keep playing over top of and in addition to the engine-set BGM.
To get around this, I have a common event ran on loading a save game that disables all Mush BGMs and BGS, which makes the audio effects on loading a save game seamless and work great. However, with this method, if I try to load a save on a map that has a Mush BGM (initiated with an autorun event on the map) then the BGM will start playing very quickly as soon as I press the confirm key on the save, run for a moment, then "blip out" (as a map is finished loading), then immediately start playing again.
Is there a way to making loading a Mush BGM not "blip" upon loading a map? It seems to me like it's saved the last Mush BGM played on that map somewhere and is replaying that saved track before the map itself is even loaded, then, once the map is loaded, running the autorun that's supposed to turn on the Mush BGM, which causes the "blip".
Edit:
Edit2: Looks like this change of mine causes crashes of it's own and also runs no Mush BGS or BGM when a save is loaded on a map. Would it be possible to add a feature to the plugin that stops currently playing Mush BGM & BGS when loading a save?
Just to be clear, in the base plugin, if you save on two different maps (Map A and Map C), one with a Mush BGM/BGS (Map C) and one with no Mush audio (Map A), if you load Map A while standing in Map C, Map C's Mush BGM/BGS will continue playing on their own. The Mush audio from Map C will also start playing before anything is loaded on screen if you load a save that has a Mush BGM (non-spatial).
Edit3:
Edit4: Alright, I figured out the issue that is causing the wrong BGS to play on maps. This occurs when you have two saves, one on Map A, and one on Map C. As an example, if you, from the title screen, load a map that has a silent BGS on channel 5, then load a map with an active BGS on channel 5, it will play the BGS from the previous map instead of the BGS that should be played. For clarification, steps to reproduce this bug:
1) Make two saves, one on Map A that has a silent spatial BGS on channel 5, and the other on map C that has an active spatial BGS on channel 5.
2) Return to the title screen.
3) Load the save on Map A. Everything seems fine!
4) Load the save on Map C. The silent spatial BGS from Map A is now active and playing per the settings on Map C's spatial BGS, instead of the correct spatial BGS playing.
Edit5: Found another bug, unrelated to the above. Upon transferring maps, Mush spatial audio isn't starting up until the player has moved at least one tile. Even if the player *should* be within the radius of a spatial audio, it will not trigger until the player moves. This can be fixed by attaching a common event to map loads with the script command:
$gamePlayer.requestSpatialAudioUpdate_full()I am assuming what is happening here is that spatial audio with the plugin isn't set to run the above command until the player moves on any given map, and not also immediately when a new map is loaded.
Hello, I want to ask is it possible to activate spatial sound on an event but with 'this event' for eventId rather use 1, 2, 3, ..., etc?
I tried using $gameMap.event(this._eventId) or this._eventId or 0 still doesn't work.
Using 'this event' would work on spawned event or putting the same script to many event on the map and saving time for eventing.
If you would make the feature this._eventId works also for eventId, that would be great!
I tried using $gameMap.event(this._eventId) or this._eventId or 0 still doesn't work.
Using 'this event' would work on spawned event or putting the same script to many event on the map and saving time for eventing.
If you would make the feature this._eventId works also for eventId, that would be great!
Hello,
Is there a possibility to pause the sounds when you get into the menu and then resume when you leave it?
PS: Very Nice Plugin 😀
LG
Is there a possibility to pause the sounds when you get into the menu and then resume when you leave it?
PS: Very Nice Plugin 😀
LG
Hello! 🙂
This plugin is fantastic and I'm updating all my events right now, to sound more immersive.
I have one question though:
Is it possible to turn a spacial BGS on and off? Like if you have a campfire, and you can light and extinguish it, and would only hear the fire while the fire is actually lit?
Thank you!
This plugin is fantastic and I'm updating all my events right now, to sound more immersive.
I have one question though:
Is it possible to turn a spacial BGS on and off? Like if you have a campfire, and you can light and extinguish it, and would only hear the fire while the fire is actually lit?
Thank you!
Can you make reverb, delay, EQ effect please!
If I can make an automation system with variables, I can create 3D dynamic sound with this super cool plugin
pls!
If I can make an automation system with variables, I can create 3D dynamic sound with this super cool plugin
pls!
Excellent plugin! Very impressive!
Edit: I managed to get spatial audio working! 😀
Suggestion: It would be great to be able to loop spatial audio in SE. One problem is that almost all of the game's sounds are SE.
Edit: I managed to get spatial audio working! 😀
Suggestion: It would be great to be able to loop spatial audio in SE. One problem is that almost all of the game's sounds are SE.
Original thread: https://forums.rpgmakerweb.com/threads/mush-audio-engine-spatial-audio-voice-acting-new-channels-etc.128741/