
Re: 24 bit WAV audio = standard in audio industry for about 7 year
On Fri, 10 Jun 2005 12:52:04 -0700, Lars Erlandsson wrote:
> OK, I dabble in C++ myself and the headers for 16 bit are the same as 24 bit
> as far as I can tell..? NumberOfBytesPerSample is 3 instead of 2 and that is
> pretty much it. If there was any confusion, it must have been cleared up a
> long, long time ago, as almost all audio software on the planet manages to
> play 24 bit files except MP...
> And this has been the case for at least 7 years.
>
> IŽll look for a parser, thanx!
> I still find it strange that MS hasn't solved this many years ago.
I've made a DirectShow transform filter that seems to work around this
problem. The filter does nothing more than change the output pin type to
be a WAVE_FORMAT_EXTENSIBLE version of the input pin type and copies the
original unmodified data from the input pin to the output pin.
You can get it here:
http://www.chrisnet.net/msdn/AudioTypeConvert.zip
This filter is still kind of beta as I threw it together in about 20
minutes. You will need to copy the AudioTypeConvert.ax file somewhere onto
your system and manually register the filter using regsvr32. E.g. if you
copy it to C:\Windows\System32 you would use:
regsvr32 c:\windows\system32\AudioTypeConvert.ax
To disable it if you have a problem use:
regsvr32 /U c:\windows\system32\AudioTypeConvert.ax
Let me know if it works for you.