Help - Search - Members - Calendar
Full Version: WAVEFORMATEX.wFormatTag
Hydrogenaudio Forums > Hydrogenaudio Forum > General Audio
shaohao
I want to set the value of WAVEFORMATEX.wFormatTag variable to indicate a "single precision floating point".
What is the proper value? is
CODE
WAVEFORMATEX wfex;
wfex.wFormatTag = WAVE_FORMAT_IEEE_FLOAT;

right?

and what is the value for "double precision floating point"?

Any developer can give me a hint?
pest
WAVE_FORMAT_IEEE_FLOAT = 0x0003
benski
set the bits per sample to 64 for double precision float.

Note that some Microsoft APIs might require you to use WAVEFORMATEXTENSIBLE for floating point audio (or anything more than 2 channel / 16 bit audio for that matter).
shaohao
QUOTE (benski @ Nov 21 2006, 18:11) *
set the bits per sample to 64 for double precision float.

Note that some Microsoft APIs might require you to use WAVEFORMATEXTENSIBLE for floating point audio (or anything more than 2 channel / 16 bit audio for that matter).


THX. If i set bits per sample to 64 for double precision float. What is value should I set for wFormatTag? Still WAVE_FORMAT_IEEE_FLOAT?
pest
QUOTE (shaohao @ Nov 21 2006, 19:39) *
Still WAVE_FORMAT_IEEE_FLOAT?


yup
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.