0

My friends and I are making a game in Java that requires a small WAV to be reversed.

Any thoughts? Either there is a library for this, or the solution will be much, much harder.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131

1 Answers1

0

From the Java Sound tutorial:

If you're processing incoming sound, you can read the bytes from a TargetDataLine and then manipulate them. An algorithmically trivial example that can yield sonically intriguing results is to play a sound backwards by arranging its frames in reverse order.

I haven't dug deeply enough to figure out how to do this, but if they write about it as an example it's obviously possible.

Carl Smotricz
  • 66,391
  • 18
  • 125
  • 167
  • Awesome! That's a great start. If anyone out there knows of an implementation, boy would I appreciate a link. Thanks Carl! – Alec Sloman Jul 17 '10 at 15:19