开发者

Reversing audio in Java?

开发者 https://www.devze.com 2023-01-07 08:57 出处:网络
My friends and I are making a game in J开发者_运维问答ava that requires a small WAV to be reversed.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号