Audio capture: async PipeWire calls, raw PCM, unsubscribe (#8) #10

Merged
adam merged 1 commit from ai/issue-8 into master 2026-10-03 11:59:48 -04:00
Owner

Closes #8

  • Linux: pw-dump/pw-link via promisified execFile (no shell, no main-thread blocking); bail out of the link loop if the loopback was stopped/replaced meanwhile.
  • Windows: send PCM buffer directly instead of Array.from.
  • preload: onAudioPcmData returns an unsubscribe function (PWA must call it on teardown; tracked separately).

Tested: node --check only (no test suite; needs manual Linux/Windows run).

Closes #8 - Linux: pw-dump/pw-link via promisified execFile (no shell, no main-thread blocking); bail out of the link loop if the loopback was stopped/replaced meanwhile. - Windows: send PCM buffer directly instead of Array.from. - preload: onAudioPcmData returns an unsubscribe function (PWA must call it on teardown; tracked separately). Tested: node --check only (no test suite; needs manual Linux/Windows run).
adam changed title from WIP: Audio capture: async PipeWire calls, raw PCM, unsubscribe (#8) to Audio capture: async PipeWire calls, raw PCM, unsubscribe (#8) 2026-10-03 11:52:16 -04:00
adam merged commit c933e1e0a9 into master 2026-10-03 11:59:48 -04:00
adam deleted branch ai/issue-8 2026-10-03 11:59:48 -04:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
adam/sunburn-desktop!10
No description provided.