Skip to content

WGC backend parity: system audio, pause/resume, replay buffer, webcam #316

Open

Description

@TMHSDigital

Summary

The WGC backend (the only one that records covered or moving windows) rejects audio, pause, replay buffer and webcam with "not supported ... yet" errors, and no issue tracks closing the gap.

Where

  • src/tools/startRecording.ts:150-152, 223 (audio)
  • src/tools/startRecording.ts:229-231 (replayBufferSec)
  • src/tools/startRecording.ts:250-252 (webcam)
  • src/utils/pause.ts:164 (pause)

Impact

Recording one app's window with its sound, or keeping an instant replay of one window, forces a fallback to gdigrab, which records whatever is on top.

Suggested fix

Start with audio (gdigrab already adds a dshow loopback input). Pause could reuse the gdigrab segment model in utils/pause.ts; replay and webcam later. Open questions: aligning audio with the gfxcapture clock (first frame arrives late), and whether the wgcRecorder.ts process model allows segmenting.

Acceptance criteria

  • Audio supported on wgc
  • Pause/resume supported on wgc
  • Remaining gaps documented

Getting started

  • Relevant files: src/tools/startRecording.ts, src/utils/pause.ts
  • How to run tests: npm run build && npm test (also npm run typecheck and npm run lint)
  • Related docs: CONTRIBUTING.md, AGENTS.md

Filed by repo-audit/full-audit at f2fda28. Severity: medium. Effort: L. audit-key: enhancement|src/tools/startRecording.ts|wgc-feature-parity

Activity

  1. added
    enhancement
    on Nov 9, 2026
  2. TMHSDigital commented on Nov 16, 2026

    @TMHSDigital
    OwnerAuthor

    System audio done in 8e12ca2: backend "wgc" takes audio { source: "system" }. The WGC encoder records the dshow loopback device as a second input, starting at the window's first frame, and -shortest ends it with the video when the recorder closes stdin. Verified with unit tests and the real encoder command, using a tone in place of the device (no loopback device on the dev machine). Still open: pause/resume, the replay buffer and the webcam with wgc. Each needs the WGC recorder to run as restartable segments, as the ffmpeg backends do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementpriority: medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions