-
Notifications
You must be signed in to change notification settings - Fork 8
/
presets.go
41 lines (39 loc) · 839 Bytes
/
presets.go
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
package main
type presetStruct struct {
name string
demodMode string
outputRate uint
filterBandwidth float64
demodOptions map[string]interface{}
}
var presets = map[string]presetStruct{
"am": {
name: "AM",
demodMode: modeAM,
outputRate: 48000,
filterBandwidth: 10e3,
demodOptions: map[string]interface{}{
"audioCut": 5e3,
},
},
"nbfm": {
name: "Narrow Band FM",
demodMode: modeFM,
outputRate: 48000,
filterBandwidth: 10e3,
demodOptions: map[string]interface{}{
"deviation": 5e3,
"tau": 75e-6,
},
},
"wbfm": {
name: "Wide Band FM",
demodMode: modeFM,
outputRate: 48000,
filterBandwidth: 120e3,
demodOptions: map[string]interface{}{
"deviation": 75e3,
"tau": 75e-6,
},
},
}