📄 sound.h
字号:
//*----------------------------------------------------------------------------
//* ATMEL Microcontroller Software Support - ROUSSET -
//*----------------------------------------------------------------------------
//* The software is delivered "AS IS" without warranty or condition of any
//* kind, either express, implied or statutory. This includes without
//* limitation any warranty or condition with respect to merchantability or
//* fitness for any particular purpose, or against the infringements of
//* intellectual property rights of others.
//*----------------------------------------------------------------------------
//* File Name : sound.h
//* Object : laser wave file
//* Creation : NLe 27/11/2002
//*
//*----------------------------------------------------------------------------
#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 + -