Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: WAVEFORMATEXTENSIBLE (Read 7869 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

WAVEFORMATEXTENSIBLE

Hello,

why doesn't foobar2000 write multichannel WAV files in WAVEFORMATEXTENSIBLE format?

Is it a bug?

WAVEFORMATEXTENSIBLE

Reply #1
No, it is a design choice. Several commandline encoders don't support WAV files with this format as far as I know.

WAVEFORMATEXTENSIBLE

Reply #2
Ironically, there are encoders that require multichannel WAV to be in WAVEFORMATEXTENSIBLE, such as Windows Media Encoder and the new FLAC 1.1.3. Additionally, the WAVEFORMATEX officially supports up to only 2 channels:
Quote
The WAVEFORMATEX structure defines the format of waveform-audio data. Only format information common to all waveform-audio data formats is included in this structure. For formats that require additional information, this structure is included as the first member in another structure, along with the additional information.

Formats that support more than two channels or sample sizes of more than 16 bits can be described in a WAVEFORMATEXTENSIBLE structure, which includes the WAVEFORMAT structure.
[...]
nChannels

Number of channels in the waveform-audio data. Monaural data uses one channel and stereo data uses two channels.

Wouldn't it be optimal (compatible) to write mono and stereo WAVs in WAVEFORMATEX, and the others in WAVEFORMATEXTENSIBLE?