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:
2026-10-07 12:14:41 +02:00
co-authored by Cursor
parent f90b6150f3
commit f8cad55e9c
24 changed files with 847 additions and 225 deletions
+3 -14
View File
@@ -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})
}