📄 sound.h
字号:
/*************************************** Copyright (c) *************************************************
*
* POLAR STAR
* 北天星国际有限公司
* http://www.po-star.com
*
*文 件 名: sound.h
*
*编译环境:ADS1.2
*
********************************************************************************************************/
#ifndef sound_h
#define sound_h
#define AT91C_WAV_FILE_SIZE 940800 // in bytes
#define AT91C_WAV_FILE_SAMPLING_FREQ 44100 // in Hz
typedef struct _AT91S_WaveHeaderDESC
{
unsigned char riff[4]; // The word "riff"
unsigned int fileSize;
unsigned char wave[4]; // "wave"
unsigned char fmt[4]; // "fmt " (note space)
unsigned int fmtSize; // should be 16
unsigned short WaveType; // 0x01 is PCM
unsigned short monoStereo; // mono=1 stereo=2
unsigned int sampleRate; // in Hz
unsigned int sampleSpeed; // in bytes/second
unsigned short alignment; // block alignment
unsigned short sampleWidth; // in bits/sample
unsigned char data[4]; // "data"
unsigned int chunkSize; // Bytes in this data section
} AT91S_WaveHeaderDESC, *AT91PS_WaveHeaderDESC;
extern AT91PS_WaveHeaderDESC sdram_file;
/*extern const int wav_file[];*/
#endif // end sound_h
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -