Hi - It seems that when decoding a flac file that does have a STREAMINFO header (which I think is legit as format is streamable and can be started at any position), then the WAV header of the output file contains 0 for # of channels
The flac utility needs a STREAMINFO to create a correct WAV file. The code could be changed such that the # of channels is retrieved from the frame headers, but the chunk size must be taken from the STREAMINFO.
The fact that the FLAC format is streamable is only applicable to decoding on the fly (for immediate playback), this was never meant to make it properly decodable to WAV.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The flac utility needs a STREAMINFO to create a correct WAV file. The code could be changed such that the # of channels is retrieved from the frame headers, but the chunk size must be taken from the STREAMINFO.
The fact that the FLAC format is streamable is only applicable to decoding on the fly (for immediate playback), this was never meant to make it properly decodable to WAV.