Constructs an AiffProperties instance by parsing a COMM chunk.
Raw bytes of the COMM chunk (must be at least 18 bytes).
Byte length of the "SSND" chunk.
Level of detail for property parsing. Defaults to ReadStyle.Average.
Average bitrate of the stream in kilobits per second.
Matches the C++ calculation: trunc(streamLength * 8 / preciseLength + 0.5).
Bitrate in kbps, or 0 if duration is zero.
Bits per sample (bit depth) of the audio stream.
Bit depth (e.g. 16, 24).
Number of audio channels.
Channel count (e.g. 2 for stereo).
Human-readable compression name from the Pascal string in the COMM chunk (AIFC only).
The compression name string, or "" for plain AIFF.
Four-character compression type identifier (AIFC only).
Common values: "NONE" (uncompressed), "sowt" (little-endian PCM), "fl32".
The compression type string, or "" for plain AIFF.
Whether this is an AIFC file (the COMM chunk contains a compression type field).
true for AIFC, false for plain AIFF.
Playback duration in milliseconds, derived from sampleFrames and sampleRate.
Duration in milliseconds, or 0 if sampleRate is zero.
Duration rounded to the nearest second.
Total number of PCM sample frames in the "SSND" chunk.
Sample frame count.
Sample rate of the audio stream in Hz (rounded to the nearest integer).
Sample rate in Hz, or 0 if unknown.
Audio properties parsed from an AIFF/AIFC
COMMchunk.COMMchunk layout (big-endian):channels(2)+sampleFrames(4)+bitsPerSample(2)sampleRate(10 bytes, IEEE 754 80-bit extended float)For AIFC, additionally:
compressionType(4)+compressionName(Pascal string)