Skip to content

fix: Tie native bridge monitoring to arm state for DAW-like behavior#721

Merged
braedonsaunders merged 1 commit intoclaude/build-openstudio-app-kgia5from
claude/fix-arm-audio-monitoring-OUBRY
Jan 6, 2026
Merged

fix: Tie native bridge monitoring to arm state for DAW-like behavior#721
braedonsaunders merged 1 commit intoclaude/build-openstudio-app-kgia5from
claude/fix-arm-audio-monitoring-OUBRY

Conversation

@braedonsaunders
Copy link
Owner

The native bridge's audio monitoring was not checking the track's armed state, causing inconsistent behavior when arming/disarming tracks.

In the browser's TrackAudioProcessor, monitoring is properly tied to arm state (shouldMonitor = isArmed && monitoringEnabled). However, the native bridge only checked monitoring_enabled and is_muted, ignoring is_armed.

This caused the bug where:

  1. Start audio with track armed → audio works
  2. Disarm track → audio stops (expected for DAW)
  3. Re-arm track → no audio (bug)

The fix adds is_armed to the should_monitor check in process_input(), making native bridge monitoring behave like a traditional DAW:

  • Monitoring requires: armed AND monitoring enabled AND not muted
  • Disarming a track now properly stops input monitoring
  • Re-arming restores monitoring as expected

The native bridge's audio monitoring was not checking the track's armed
state, causing inconsistent behavior when arming/disarming tracks.

In the browser's TrackAudioProcessor, monitoring is properly tied to arm
state (shouldMonitor = isArmed && monitoringEnabled). However, the native
bridge only checked monitoring_enabled and is_muted, ignoring is_armed.

This caused the bug where:
1. Start audio with track armed → audio works
2. Disarm track → audio stops (expected for DAW)
3. Re-arm track → no audio (bug)

The fix adds is_armed to the should_monitor check in process_input(),
making native bridge monitoring behave like a traditional DAW:
- Monitoring requires: armed AND monitoring enabled AND not muted
- Disarming a track now properly stops input monitoring
- Re-arming restores monitoring as expected
@vercel
Copy link

vercel bot commented Jan 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
openstudio Ready Ready Preview, Comment Jan 6, 2026 3:19am

@braedonsaunders braedonsaunders merged commit 645a64e into claude/build-openstudio-app-kgia5 Jan 6, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants