Skip to content

Feature/microphone recording#68

Open
AnKh99 wants to merge 6 commits into
KartikLabhshetwar:mainfrom
AnKh99:feature/microphone-recording
Open

Feature/microphone recording#68
AnKh99 wants to merge 6 commits into
KartikLabhshetwar:mainfrom
AnKh99:feature/microphone-recording

Conversation

@AnKh99

@AnKh99 AnKh99 commented Jun 8, 2026

Copy link
Copy Markdown

Description

This PR adds support for microphone audio recording alongside system audio, adds a toggle in the Preferences menu, and introduces a mute/unmute button in the active recording overlay.

Key Changes

  1. Preferences & AppPreferences:
    • Added a new Capture microphone toggle in the Recording settings tab.
  2. Audio Capture & Multi-track Recording:
    • Integrated AVCaptureSession to capture the default microphone input device.
    • Configured AVCaptureAudioDataOutput to convert input to a standard PCM format (48kHz, 16-bit, mono) to prevent encoding mismatches and loud white/static noise.
    • Added a secondary audio input track (micInput) to RecordingSession to output multi-track audio inside the .mp4 file.
  3. Interactive Mute/Unmute:
    • Added a microphone mute/unmute button to the active recording overlay toolbar.
    • Mutes the audio stream by zeroing PCM bytes in real-time while preserving sample timestamps (preventing audio/video desync).
  4. macOS Security & Sandboxing:
    • Added NSMicrophoneUsageDescription to Info.plist and com.apple.security.device.audio-input to entitlements to prevent TCC crashes on launch.

Note: This PR is stacked on top of my previous PR (Auto-select screen #67). Once that PR is merged, this PR will automatically update to show only the microphone changes.

@vercel

vercel Bot commented Jun 8, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the knox projects Team on Vercel.

A member of the Team first needs to authorize it.

@tembo tembo Bot mentioned this pull request Jun 9, 2026
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.

1 participant