|
|
|
@@ -19,6 +19,7 @@ type FrameSummary struct { |
|
|
|
PilotLevel float64 `json:"pilotLevel"` |
|
|
|
RDSInjection float64 `json:"rdsInjection"` |
|
|
|
OutputDrive float64 `json:"outputDrive"` |
|
|
|
Source string `json:"source"` |
|
|
|
PreviewSamples []float64 `json:"previewSamples"` |
|
|
|
} |
|
|
|
|
|
|
|
@@ -32,6 +33,10 @@ func Generate(cfg cfgpkg.Config) FrameSummary { |
|
|
|
} |
|
|
|
preview[i] = sign * base * float64(i+1) / 16.0 |
|
|
|
} |
|
|
|
source := "tones" |
|
|
|
if cfg.Audio.InputPath != "" { |
|
|
|
source = cfg.Audio.InputPath |
|
|
|
} |
|
|
|
return FrameSummary{ |
|
|
|
Mode: "dry-run", |
|
|
|
FrequencyMHz: cfg.FM.FrequencyMHz, |
|
|
|
@@ -42,6 +47,7 @@ func Generate(cfg cfgpkg.Config) FrameSummary { |
|
|
|
PilotLevel: cfg.FM.PilotLevel, |
|
|
|
RDSInjection: cfg.FM.RDSInjection, |
|
|
|
OutputDrive: cfg.FM.OutputDrive, |
|
|
|
Source: source, |
|
|
|
PreviewSamples: preview, |
|
|
|
} |
|
|
|
} |
|
|
|
|