Skip to content

Mic routing: Reduce latency #83

Description

@akonopcz

Problem

Current ring buffer is sized for 1 second at 48kHz stereo (96000 samples). This may introduce noticeable latency in voice communication.

Current Behavior

  • Ring buffer: 48000 * 2 = 96000 samples
  • At 48kHz stereo, this is ~1 second of audio
  • Latency could be perceptible in real-time conversation

Proposed Solution

  • Reduce buffer size to ~50-100ms (4800-9600 samples at 48kHz)
  • Implement proper buffer fill level monitoring
  • Add latency configuration option in settings

Files

src-tauri/src/vbcable/microphone.rs

Activity

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions