Add /api/audio/profile endpoints for runtime latency profile switching

- GET /api/audio/profiles — list available profiles with params
- GET /api/audio/profile — current profile + jack_running + xrun_count
- POST /api/audio/profile {profile: 'standard'|'low'} — switch profile,
  restart JACK server + JACK audio client atomically
- Adds audio_system + jack_audio refs to WebServerDeps
- Rollback on JACK restart failure
This commit is contained in:
2026-06-13 20:47:35 -04:00
parent c0c0ffe4f2
commit 2aefa5303d
2 changed files with 108 additions and 0 deletions
+2
View File
@@ -248,6 +248,8 @@ class PedalApp:
pipeline=self.pipeline,
nam_host=self.nam_host,
ir_loader=self.ir_loader,
audio_system=self.audio_system,
jack_audio=self.jack_audio,
),
host="0.0.0.0",
port=8080,