Android reverse WAV file
===

I'm working on audio proccessing app for android , and created a class for reversing WAV files. everything works great on J2SE on my PC.
but the code is very slow on android "due to continuous reading of small amount of data and writing it , about 2 bytes usually".

The process is taking almost for ever to deliver that I actually believe uploading the files to a server to handle may be a very much more effective way.
I've tried using channels , file maps and buffered IOs all ended in a very poor performance.

The logic I'm using now.
1- read first 44 bytes and write them to a new file "reverse file".
2- calculate the block size to be moved "number of bytes per sample * number of channels"
3- read that amount of data from the end of the first file and write it to the reverse file "also I tried writing to a buffer and when it is full write to reverse file" .

any ideas who can I improve the performance . or should I give up on my current approach ?

Thanks