File tree Expand file tree Collapse file tree 2 files changed +24
-24
lines changed Expand file tree Collapse file tree 2 files changed +24
-24
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,30 @@ type config struct {
4747 styles graphic.Styles
4848}
4949
50+ // NewZeroConfig returns a zero config
51+ // it is the "default"
52+ //
53+ // nori's defaults:
54+ // - sampleRate: 122880
55+ // - sampleSize: 2048
56+ // - smoothFactor: 80.15
57+ // - super smooth detail view
58+ func newZeroConfig () config {
59+ return config {
60+ sampleRate : 44100 ,
61+ sampleSize : 1024 ,
62+ smoothFactor : 80.15 ,
63+ frameRate : 0 ,
64+ baseSize : 1 ,
65+ barSize : 2 ,
66+ spaceSize : 1 ,
67+ channelCount : 2 ,
68+ drawType : int (graphic .DrawDefault ),
69+ combine : false ,
70+ useThreaded : false ,
71+ }
72+ }
73+
5074// Sanitize cleans things up
5175func (cfg * config ) Sanitize () error {
5276
Original file line number Diff line number Diff line change @@ -140,30 +140,6 @@ func catnip(cfg *config) error {
140140 return nil
141141}
142142
143- // NewZeroConfig returns a zero config
144- // it is the "default"
145- //
146- // nori's defaults:
147- // - sampleRate: 122880
148- // - sampleSize: 2048
149- // - smoothFactor: 80.15
150- // - super smooth detail view
151- func newZeroConfig () config {
152- return config {
153- sampleRate : 44100 ,
154- sampleSize : 1024 ,
155- smoothFactor : 80.15 ,
156- frameRate : 0 ,
157- baseSize : 1 ,
158- barSize : 2 ,
159- spaceSize : 1 ,
160- channelCount : 2 ,
161- drawType : int (graphic .DrawDefault ),
162- combine : false ,
163- useThreaded : false ,
164- }
165- }
166-
167143func doFlags (cfg * config ) bool {
168144
169145 parser := flaggy .NewParser (AppName )
You can’t perform that action at this time.
0 commit comments