Constructs a WavProperties instance by parsing a "fmt " chunk.
Matches the C++ calculation: uses exact floating-point arithmetic and
Math.trunc(x + 0.5) rounding (equivalent to C++ static_cast<int>(x + 0.5)).
Raw bytes of the "fmt " chunk (must be at least 16 bytes).
Byte length of the "data" chunk including chunk padding.
Sample frame count from the "fact" chunk (0 if absent).
Level of detail for property parsing. Defaults to ReadStyle.Average.
Average bitrate of the stream in kilobits per second.
Bitrate in kbps, or 0 if unknown.
Bits per sample (bit depth) of the audio stream.
Bit depth (e.g. 16, 24, 32).
Number of audio channels.
Channel count (e.g. 2 for stereo).
Audio format tag from the "fmt " chunk.
Common values: 1 = PCM, 3 = IEEE float, 6 = A-law, 7 = μ-law.
For WAVE_FORMAT_EXTENSIBLE files, this is the sub-format tag.
The format tag value.
Playback duration in milliseconds.
Duration in milliseconds, or 0 if unknown.
Duration rounded to the nearest second.
Total number of PCM sample frames.
Sample frame count, or 0 if unknown.
Sample rate of the audio stream in Hz.
Sample rate in Hz, or 0 if unknown.
Audio properties parsed from a WAV
"fmt "chunk.fmtchunk layout (little-endian):format(2)+channels(2)+sampleRate(4)+avgBytesPerSec(4)blockAlign(2)+bitsPerSample(2)For WAVE_FORMAT_EXTENSIBLE, the sub-format GUID occupies bytes 24–39, and bytes 24–25 contain the actual codec identifier.