How WAV to FLAC conversion works
WAV decode → normalized audio stream → FLAC encode
Reading WAV
WAV input may contain uncompressed PCM or another supported codec plus RIFF metadata.
Creating FLAC
FLAC output preserves audio samples losslessly while reducing size compared with uncompressed PCM.