Added standalone analyzer layout
This commit is contained in:
5 files changed
+110
-13
No files matched your search
+3
-4
@@ -50,7 +50,7 @@ func New(config *config.Config) (*Controller, error) {
|
||||
c.teardown(log)
|
||||
return nil, err
|
||||
}
|
||||
if err := c.configureApps(log); err != nil {
|
||||
if err := c.configureLayouts(log); err != nil {
|
||||
log.WithError(err).Error("fatal error setting up apps")
|
||||
c.teardown(log)
|
||||
return nil, err
|
||||
@@ -104,13 +104,12 @@ func (c *Controller) configureInputs(log *logrus.Entry, settings *config.Input)
|
||||
return
|
||||
}
|
||||
|
||||
func (c *Controller) configureApps(_ *logrus.Entry) (err error) {
|
||||
func (c *Controller) configureLayouts(_ *logrus.Entry) (err error) {
|
||||
c.ctx.addSettings(layout.Settings(&c.ctx))
|
||||
c.ctx.addLayout(layout.Playing(&c.ctx))
|
||||
//c.ctx.addLayout(layout.Spectrum(&c.ctx))
|
||||
c.ctx.addLayout(layout.Analyzer(&c.ctx))
|
||||
c.ctx.addLayout(layout.Shader(&c.ctx))
|
||||
c.ctx.Show(nil)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user