FMTSubChunk {Microsoft.VisualBasic.Data.Wave} | .NET clr documentation |
The "fmt " subchunk describes the sound data's format
# namespace Microsoft.VisualBasic.Data.Wave
export class FMTSubChunk extends SubChunk {
# PCM = 1 (i.e. Linear quantization) Values other than 1 indicate some form of compression.
audioFormat: wFormatTag;
# 8 bits = 8, 16 bits = 16, etc.
BitsPerSample: integer;
# ```
# NumChannels * BitsPerSample / 8
# ```
#
# The number Of bytes For one sample including
# all channels. I wonder what happens When
# this number isn't an integer?
BlockAlign: integer;
# (bytes_per sec) 音频的码率,每秒播放的字节数。
#
# SampleRate * NumChannels * BitsPerSample / 8
#
ByteRate: integer;
channels: Channels;
chunkID: string;
chunkSize: integer;
# Pulse Code Modulation
isPCM: boolean;
# 22.05KHz/44.1kHz/48KHz
SampleRate: integer;
}
audioFormat
: wFormatTagchannels
: Channels