I'm writing a program that writes audio data to a mono 32bit little endian signed integer values. I set everything like I normally would in a PCM wav file, set one channel, 11025 samples/s, but for bits/sample I set 32 (instead of the normal 8 or 16). I then calculated the proper byte rate and block allign header entries, and went on to write the headers and audio data like a normal wav file. However it Windows Media Player does NOT recognize it. VLC player on the other hand DOES recognize it.
I found the software GoldWave DOES CORRECTLY produce a wav file that is the same specs (mono 32bit little endian signed integer) as my wav file. It turns out that it also uses an extended header, but also includes a FACT chunk, and also uses the compression code 0xFFFE (I have no clue what this does) in the format header instead of the normal compression code 0x0001 (PCM). If someone could shed some light onto the compression code value 0xFFFE for me, I would really appreciate it. Is it just a nonstandard value? Or does Microsoft WMP recognize it for some reason? Also which of the 3 things that are DIFFERENT from a normal PCM file (using extended header, using a FACT chunk, or using the compression code 0xFFFE) do you think is repsonsible for causing WMP to recognize it?
I'd like to know so I can create a program that writes a VALID (recognized by WMP) wav file that is mono 32bit little endian signed integer?
+ Reply to Thread
Results 1 to 2 of 2
-
-
It could be a little more involved than that. I've worked with 32bit LPCM WAV files before, so I'd be happy to help, except I'm right in the middle of a long-awaited Upgrade/Rebuild of my family mediaserver. I'll try to get back to you tomorrow or Monday P.M. if noone else has posted the info.
Things to consider:
WAVEFORMAT vs. WAVEFORMATEX/WAVEFORMAT_EXTENSIBLE chunk structure
I can get you a (short) list of the standard acceptable compression codes.
Note, most media players (like WMP, etc) don't understand 32bit WAV natively in any flavor. I've only seen conversion apps, Editors/DAWs that support it.
'Til later,
Scott
Similar Threads
-
decode 5.1 matrix surround wav file to 6 mono wav files
By Zerrax in forum AudioReplies: 2Last Post: 24th Nov 2013, 07:39 -
Will my pc run W7 32bit?
By neworldman in forum ComputerReplies: 6Last Post: 20th Oct 2010, 14:42 -
Vista (32bit) to W7 (63bit)?
By neworldman in forum ComputerReplies: 13Last Post: 31st Aug 2010, 17:40 -
Why is virtualdub 32bit much slower on windows 7 X64 than winxp 32bit?
By TigerSoul in forum EditingReplies: 4Last Post: 26th Mar 2010, 15:13 -
Formula to calculate closest integer divisible by 16 ...
By ptfigg in forum ProgrammingReplies: 10Last Post: 11th Jul 2008, 10:04