Reversing audio in Java?
My friends and I are making a game in J开发者_运维问答ava 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.
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.
精彩评论