-
Notifications
You must be signed in to change notification settings - Fork 0
/
mp3.h
executable file
·48 lines (41 loc) · 1.53 KB
/
mp3.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
STATIC char *layers[]={"Undef.","Layer III","Layer II","Layer I"},
*modes[]={"Stereo","J-Stereo","Dual-Channel","Mono"},
*std[]={"MPEG-1 ","MPEG-2 "};
STATIC ULONG frequency[2][4]={44100,48000,32000,0, // MPEG-1
22050,24000,16000,0}; // MPEG-2
// MPEG-1
// L1 L2 L3
STATIC ULONG bitrates[2][16][3]={ 0 ,0 ,0,
32 ,32 ,32,
64 ,48 ,40,
96 ,56 ,48,
128 ,64 ,56,
160 ,80 ,64,
192 ,96 ,80,
224 ,112 ,96,
256 ,128 ,112,
288 ,160 ,128,
320 ,192 ,160,
352 ,224 ,192,
384 ,256 ,224,
416 ,320 ,256,
448 ,384 ,320,
0 ,0 ,0,
// MPEG-2
// L1 L2 L3
0 ,0 ,0,
32 ,32 ,8,
64 ,48 ,16,
96 ,56 ,24,
128 ,64 ,32,
160 ,80 ,64,
192 ,96 ,80,
224 ,112 ,56,
256 ,128 ,64,
288 ,160 ,128,
320 ,192 ,160,
352 ,224 ,112,
384 ,256 ,128,
416 ,320 ,256,
448 ,384 ,320,
0 ,0 ,0 };