Adding support for reading/writing files with 24-bit PCM samples

Also allowing 24-bit buffers to be converted into different formats.