jackman
Your trouble with flac must be an implementation issue. I invite you to do the following test. In Ubuntu it is very easy to get the reference flac encoder. You can make an Ubuntu live USB stick that you can boot into without even installing Ubuntu. Once booted, open a terminal and install flac by typing
sudo apt-get install flac
Insert another USB stick into the computer with your wav file. In my example I used "192k_24bit.wav". You will need to change directory into the inserted USB stick. Type
cd /media/[press tab key to list your inserted USB stick and type the first letter of the stick, then tab again, then enter]
My usb stick was
cd /media/68CA-62A1
first convert the wav file to flac by typing
flac -0 192k_24bit.wav
//a file called 192k_24bit.flac will be created. Next convert the flac file back to wav
flac -c -d 192k_24bit.flac > output.wav
//Finally compare the original and converted files with the md5 hashing algorithm by typing
md5sum output.wav 192k_24bit.wav
//its output is....
eb6135cd9fde736a779a864a95fac41e output.wav
eb6135cd9fde736a779a864a95fac41e 192k_24bit.wav
You will notice that the md5sums are identical. Not one bit is different!