formats.h
Go to the documentation of this file.
1 #ifndef FORMATS_H_160601_TT
2 #define FORMATS_H_160601_TT 1
3 
4 #ifndef WAVE_FORMAT_PCM
5 #define WAVE_FORMAT_PCM 1
6 
7 // 对于不超过两个通道且具有8位或16位采样的PCM音频数据,使用WAVEFORMATEX结构指定数据格式。
8 typedef struct tWAVEFORMATEX
9 {
10  unsigned short wFormatTag; // 指定格式类型; 默认 WAVE_FORMAT_PCM = 1
11  unsigned short nChannels; // 指出波形数据的声道数; 单声道为 1, 立体声为 2
12  unsigned int nSamplesPerSec; //指定采样频率(每秒的样本数)
13  unsigned int nAvgBytesPerSec; //指定数据传输的传输速率(每秒的字节数)
14  unsigned short nBlockAlign; //指定块对齐块对齐是数据的最小单位
15  unsigned short wBitsPerSample; //每个样本的位数。表示每个声道中各个样本的数据位数
16  unsigned short cbSize; //该结构(类)的大小
17 } WAVEFORMATEX;
18 #endif
19 
20 #endif
unsigned short wBitsPerSample
Definition: formats.h:15
unsigned int nSamplesPerSec
Definition: formats.h:12
unsigned int nAvgBytesPerSec
Definition: formats.h:13
unsigned short wFormatTag
Definition: formats.h:10
struct tWAVEFORMATEX WAVEFORMATEX
unsigned short nChannels
Definition: formats.h:11
unsigned short nBlockAlign
Definition: formats.h:14
unsigned short cbSize
Definition: formats.h:16


xbot_talker
Author(s): wangxiaoyun
autogenerated on Sat Oct 10 2020 03:27:53