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
+11
View File
@@ -4,6 +4,17 @@ Sizzletracker for Android (`cc.tiredsysadmin.android.sizzle`). One entry per
version in `versions.properties`; versions before 0.28.0 are described in the git
log (one commit per version).
## 0.29.0 (versionCode 58)
- **MIDI inputs list** (Setup → MIDI Sync): every MIDI source Sizzle can hear
(controllers, other apps' virtual ports such as Mikro Seq), each with a switch
and its state (Listening / Not connected / Off), plus a **Reconnect** button.
The choice is saved; new sources are on by default.
- **Automatic reconnect** when the app behind a virtual source restarts (crash,
update, force stop). Android gives no signal for that and left Sizzle holding a
dead connection, so Mikro Seq could play into nothing. Sizzle now checks open
virtual sources every 3 s and reopens a dead one, and re-scans on every resume.
## 0.28.0 (versionCode 57)
- **Background MIDI sound module.** New setting "Keep running as MIDI sound