0

I know we can use Clip to play a song using clip.start(). However, is there a function in Clip that allows us to play the song at a different frequency from the original song?

Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433
Programmer
  • 6,565
  • 25
  • 78
  • 125
  • Possible duplicate of [Increase playback speed of sound file in java](http://stackoverflow.com/questions/5760128/increase-playback-speed-of-sound-file-in-java). – Andrew Thompson Apr 05 '12 at 12:56
  • Note the same crude technique shown in my answer to the duplicate question is also implemented for the `fastForward` & `fastRewind` modes in ..[`BigClip`](http://stackoverflow.com/a/9470886/418556). ;) – Andrew Thompson Apr 05 '12 at 13:01

1 Answers1

2

There is a clip.open(AudioFormat format, byte[] data, int offset, int bufferSize) where you can change AudioFormat freqency. In the folowing link there is code example http://jvalentino2.tripod.com/dft/index.html

Zhivko Draganov
  • 1,213
  • 2
  • 10
  • 16