Switch the lab reflector to jayReflector and harden local station use.
Build DJ1JAY’s fork with an optional Satellite/Trunk stub, allow -c/--config, open capture and playback as separate devices, and add a lab start helper. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -2,9 +2,6 @@ package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
"gitea.neitzel.de/konrad/funknetz/audio"
|
||||
"gitea.neitzel.de/konrad/funknetz/station"
|
||||
@@ -47,18 +44,10 @@ func (a *App) HoldSpace() { a.station.HoldSpace() }
|
||||
// ReleaseSpace reports that Space was released.
|
||||
func (a *App) ReleaseSpace() { a.station.ReleaseSpace() }
|
||||
|
||||
func configPath() (string, error) {
|
||||
home, err := os.UserHomeDir()
|
||||
func openStation(args []string) (*station.Station, error) {
|
||||
path, err := resolveConfigPath(args)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
return filepath.Join(home, ".funknetz.json"), nil
|
||||
}
|
||||
|
||||
func openStation() (*station.Station, error) {
|
||||
path, err := configPath()
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("could not be read")
|
||||
return nil, err
|
||||
}
|
||||
return station.New(station.Options{ConfigPath: path})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user