IPB

Welcome Guest ( Log In | Register )

WAV header, Wav header format
poochi
post Feb 19 2013, 10:52
Post #1





Group: Members
Posts: 11
Joined: 12-October 12
Member No.: 103802



how is the wreserved field in set in the wav header while decoding .Flac files using flac 1.2.1 win32 exe ?
ie If i decode a flac file using flac-1.2.1.exe few files have wreserved field to be 0x10 and few others 0x18 .. but http://msdn.microsoft.com/en-us/library/wi...1(v=vs.85).aspx says i need to make it 0 what exactly is happening ?

Thank you smile.gif


Go to the top of the page
+Quote Post
 
Start new topic
Replies (1 - 2)
nu774
post Feb 19 2013, 11:40
Post #2





Group: Developer
Posts: 476
Joined: 22-November 10
From: Japan
Member No.: 85902



Samples field of WAVEFORMATEXTENSIBLE is a discriminated union, and only one of wValidBitsPerSample, wSamplesPerBlock, and wReserved are valid / used, depending on the context.
For detail, read http://msdn.microsoft.com/en-us/library/wi...e/gg463006.aspx

In your case, this field is used not as wReserved, but as wValidBitsPerSample. Therefore, 0x10 means bits per sample is 16, and 0x18 means 24.
Go to the top of the page
+Quote Post
poochi
post Mar 8 2013, 10:07
Post #3





Group: Members
Posts: 11
Joined: 12-October 12
Member No.: 103802



Thank you it was very helpful smile.gif
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 18th April 2014 - 09:52