Author Topic: Proper Transition  (Read 3281 times)

Offline Dane

  • bit
  • Posts: 6
    • View Profile
Proper Transition
« on: December 15, 2011, 06:05:44 PM »
How would I make the song that's playing, fade out and then the next one fades back in?

I've tried SoundSystem.fadeOutIn(); but it sounds like the song that's already playing just immediately stops, then the one I want to play next slowly fades in and then skips for some reason..

What's the syntax for that function and how should I set up the transition?

Atm it's like


Code: [Select] [nofollow]
if (currentSong != nextSong)
{
      SoundSystem.fadeOutIn(currentSong, nextSong, 3000, 0);
}

That's not the actual code, that's just how it's basically setup atm, and yes I want the fade in to be instant ;D

Offline Paul

  • Administrator
  • double
  • *****
  • Posts: 3499
  • Developer
    • View Profile
    • PaulsCode.Com
Re: Proper Transition
« Reply #1 on: December 15, 2011, 06:46:51 PM »
I'll look into this.  This is with MIDI, correct?
Device: Samsung Galaxy Nexus i515
CPU: TI OMAP4460, 1.2 GHz (dual core, ARM Cortex-A9)
GPU: PowerVR SGX540, 307 MHz
RAM: 1 GB
Resolution: 720 x 1280
Rom: omni-4.4.4-20141014-toro-FML KitKat 4.4.4, rooted

Device: Eee PC 1015PEM
CPU: Intel Atom N550, 1.5 GHz (dual core, x86)
GPU: Intel GMA 3150, 200 MHz (dual core)
RAM: 2GB
Resolution: 1024 x 600
Rom: android-x86-4.3-20130725 Jelly Bean 4.3, rooted

Offline Dane

  • bit
  • Posts: 6
    • View Profile
Re: Proper Transition
« Reply #2 on: December 15, 2011, 07:17:09 PM »
Yup