-
Notifications
You must be signed in to change notification settings - Fork 0
/
include.h
56 lines (50 loc) · 1009 Bytes
/
include.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#ifndef _INCLUDE_H_
#define _INCLUDE_H_
#include <stdint.h>
#define readByte 2880
uint8_t audData[readByte];
uint8_t proData[readByte];
typedef struct format
{
uint32_t RIFF;
uint32_t ChunkSize;
uint32_t Format;
uint32_t SubChunk1ID;
uint32_t SubChunk1Size;
uint16_t AudioFomat;
uint16_t NumChannel;
uint32_t SampleRate;
uint32_t ByteRate;
uint16_t BlockAlign;
uint16_t BitPerSample;
uint32_t SubChunk2ID;
uint32_t SubChunk2Size;
uint16_t extra;
} wav_format;
wav_format wavFmt;
typedef struct
{
char procType[20];
uint16_t procCmd;
}ProcArg;
typedef enum {
HELP,
HALF_F,
THIRD_F,
QUARD_F,
HALF_D,
THIRD_D,
QUARD_D,
MAX,
} argcmd;
//ProcArg WAVPROCARG[] =
//{
// {"HALF_F" , HALF_F },
// {"THIRD_F" , THIRD_F },
// {"QUARD_F" , QUARD_F },
// {"HALF_D" , HALF_D },
// {"THIRD_D" , THIRD_D },
// {"QUARD_D" , QUARD_D },
// {"MAX" , MAX },
//};
#endif