Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fmt ¶
type Fmt struct {
Subchunk1ID [4]byte //内容为"fmt "
Subchunk1Size uint32 // Fmt所占字节数,为16
AudioFormat uint16 //存储音频的编码格式,pcm为1
NumChannels uint16 //通道数, 单通道为1,双通道为2
SampleRate uint32 //采样率,如8k, 44.1k等
ByteRate uint32 //每秒存储的byte数,其值=SampleRate * NumChannels * BitsPerSample/8
BlockAlign uint16 //块对齐大小,其值=NumChannels * BitsPerSample/8
BitsPerSample uint16 //每个采样点的bit数,一般为8,16,32等。
}
Click to show internal directories.
Click to hide internal directories.