Is there a way to crossfade between two sounds on Android?
In my game I have a "day background music" and "night background music" and during day-night transition I need to smoothly fade one in and fade one out, so they must play in sync (they have the same tune with same timing, just different instruments).
If I make a Sound Cue that crossfades the two sounds by a parameter, it works great on desktop, but on Android only one sounds plays at the same time.
If I create two Ambient Sound Actors on the scene and manually make them play at the same time in BP (so that I could crossfade them using volume multiplier), they play in sync on desktop, but are always out of sync on Android.
Is there any way I can achieve that effect on android?
UPDATE: Starting two sounds on iOS at the same time makes them play in sync, only Android is a problem.
Here's how Sound Cue setup looks:
I've removed it now (since it doesn't work on Android) in favor of starting two sounds on the level and tweening their volumes:
Two sounds are just AmbientSoundActor's on the level, with bActivateAutomatically=false
If you change the Set Volume Multiplier to .001, it'll start the project with the music playing. If you have it at 0, it releases the audio channel and it doesn't mix due to the resources it's taking up for that empty channel being open.
We tested this on both a Nexus 5 and Nvidia Shield.
answered Jun 01 '16 at 08:25 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here