0

I have a requirement of joining two audio waves so that the final output audio wave should have a smoother meeting point. I meant at the joining point lets' say for 10 seconds the first audio should start fading out and the other audio starts picking up.

I have already been able to concatenate the two audio files and produce a single output but the output wave file has a abrupt change at the meeting point.

I am looking forward to some code in java (i.e. the crossfading should happen through java code without playing the files in any audio player And just to mention that I am not targeting the android solution.) or please point me to any helpful link demonstrating how to do the same.

dopeddude
  • 4,943
  • 3
  • 33
  • 41

1 Answers1

1

What you're talking about is called crossfading. Corssfade means to slowly bring up the volume of the new song while slowly bringing the volume of the old one down. For a time both can be heard.

You might want to look at these:

java sound fade out

concatenating mp3 files or joining mp3 files using java

Community
  • 1
  • 1
candied_orange
  • 7,036
  • 2
  • 28
  • 62
  • "java sound found out" was helpful but a link "OpenJava Sound Demo" present in the solution seems broken, so I was not able to understand the solution completely. Can you point me to some code/URL demonstrating the same. – dopeddude Mar 24 '15 at 04:48