title: How have a generic conversion from 32/24bit From Bytes To 16bit To bytes
body: <p>Have been searching the solution for two days.
  I want to convert my wave 32 or 24 bits to a 16bit.</p>
  
  <p>This my code after reading few stackoverflow topics): </p>
  
  <pre><code>byte[] data = Convert.FromBase64String("-- Wav String encoded --") (32 or 24 bits)
  int  conv =  Convert.ToInt16(data);
  byte[] intBytes = BitConverter.GetBytes(conv);
  if (BitConverter.IsLittleEndian)
     Array.Reverse(intBytes);
   byte[] result = intBytes;
  </code></pre>
  
  <p>but when i writeAllbyte my result, nothing to hear...</p>