title: How to convert byte[] to float[] and back in Java?
body: <p>I'm reading data from .wav files through InputStream, and read() returns bytes. A sound processing library I use, only accepts float[] to process. After it it done it gives me a float[] back. Now I need to write to the Android's AudioTrack in byte format again. </p>
  
  <p>How do I convert these <code>bytes</code> to <code>floats[]</code>, and back to <code>byte[]</code>? I've searched a bit, but everything seemed to be kinda a different situation to mine, and all problems seemed to be solved in different ways... so i'm kinda lost right now. </p>
  
  <p>If something like this conversion is already offered in some kind of library, i'd be glad to hear about that too!</p>
  
  <p>Thanks!</p>