Implement alarm sound

This commit is contained in:
nemunaire 2022-10-14 20:08:03 +02:00
commit df31c4dcd1
15 changed files with 531 additions and 50 deletions

View file

@ -16,6 +16,7 @@ func (c *Config) declareFlags() {
flag.StringVar(&c.GongsDir, "gongs-dir", c.GongsDir, "Path to the directory containing the gongs")
flag.StringVar(&c.ActionsDir, "actions-dir", c.ActionsDir, "Path to the directory containing the actions")
flag.StringVar(&c.RoutinesDir, "routines-dir", c.RoutinesDir, "Path to the directory containing the routines")
flag.IntVar(&c.SampleRate, "samplerate", c.SampleRate, "Samplerate for unifying output stream")
// Others flags are declared in some other files when they need specials configurations
}
@ -30,6 +31,7 @@ func Consolidated() (cfg *Config, err error) {
GongsDir: "./gongs/",
ActionsDir: "./actions/",
RoutinesDir: "./routines/",
SampleRate: 44100,
}
cfg.declareFlags()