Indie Dev

Hello Guest!. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, sell your games, upload content, as well as connect with other members through your own private inbox!

Plugin Audio Crossfade

Tsukihime

Praised Adventurer
Xy$
0.00
Someone requested whether they can start playing a BGM at the same position as where a previous BGM left off, so I looked at how it might work

I don't completely understand the timings. I'm assuming if the last song stopped at 10 seconds, then the next song should start 10 seconds in.

Here's something I've put together. It gives you a way to store the last position, but it's up to you to figure out when to store that position:


If someone could provide more insight as to how crossfades work that would be great.
 
I've been playing around with something like this too (with limited success). The idea being that you preload (buffer) two similarly named files and then memorise/replay them when you need them. It seems that most of the fading is controlled by WebAudio class. This might help you out a little: Seamless BGM Crossfade on Map Battle.
 

LTN Games

Master Mind
Resource Team
Xy$
0.01
This is a pretty good idea may be useful for cut scenes. If your taking requests I would love to see a audio distance plugin where the volume increases or decreases according to the distance of the event which hold the audio command. Thanks for all the plugins you're making.
 

Tsukihime

Praised Adventurer
Xy$
0.00
I may look into audio volume based on distance.
For now there are a number of other weird audio issues that have come up and I might take a break from looking at audio.
 
Top