MIDI inputs list with per-source switches; reconnect dead virtual sources (v0.29.0)

- Setup -> MIDI Sync lists every MIDI source that can send to Sizzle with a
  switch and its state (Listening / Not connected / Off) plus Reconnect.
  Off-choices persist by a stable MidiSourceKey (Android ids change).
- When the app behind a virtual source dies/restarts, Android keeps the
  device and our connection, drops the service binding and sends no callback,
  so Sizzle went deaf to e.g. a restarted Mikro Seq. A worker thread now
  probes open virtual sources every 3 s (openOutputPort is null from a dead
  server) and reopens dead ones; resume re-scans; zero-open port status is
  also treated as dead.
- Verified on an Android 15 emulator: force-stop + restart Mikro Seq ->
  reconnected within ~3 s, notes flowing with both apps in background.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Reactorcoremeltdown
2026-11-12 22:32:04 +01:00
co-authored by Claude Opus 5.5
parent fb9a219e27
commit df64af8c9b
12 changed files with 424 additions and 29 deletions
+6
View File
@@ -303,6 +303,12 @@ you delete stay deleted.
DAW) can use it as its synth. A notification shows while it is on; its
**Stop** button turns it off. Each mixer track plays the notes on its MIDI
channel.
- **MIDI Sync → MIDI inputs** — every MIDI source Sizzle can hear (controllers,
and other apps such as Mikro Seq), each with a switch. New sources are on. If a
source shows "Not connected", or an app you play from stopped being heard, tap
**Reconnect** (Sizzle also reconnects by itself within a few seconds when the
sending app restarts). Remember to give each mixer track a MIDI channel and an
instrument, or incoming notes have nowhere to sound.
- **Audio Devices** — route **Output** and **Input** to USB or built‑in.
- **Color Theme** — pick a palette, or **Export / Import `.szt`** themes. Stock
themes can't be deleted; imported ones join the list.