Skip to content

Feature/key sound#45

Merged
lee-sihun merged 8 commits intomasterfrom
feature/key-sound
Feb 22, 2026
Merged

Feature/key sound#45
lee-sihun merged 8 commits intomasterfrom
feature/key-sound

Conversation

@lee-sihun
Copy link
Member

@claude pr 리뷰해줘

Before: 매 키 입력마다 Sink::try_new() → sink.set_volume() → sink.append() → sink.detach()
After: play_on_stream() → source.amplify(volume).convert_samples::<f32>() → handle.play_raw()

Sink의 내부 mixer 입력 핸들/Arc/Mutex 생성 오버헤드 제거
볼륨은 amplify()로 소스 레벨에서 선적용
디바이스 분리 시 NoDevice 복구 로직 유지 (source를 clone해서 재시도)
레이턴시 측정에서 sinkMs + appendMs → playMs 하나로 통합
@lee-sihun lee-sihun merged commit 4ddec2e into master Feb 22, 2026
1 check passed
@lee-sihun lee-sihun deleted the feature/key-sound branch February 22, 2026 13:56
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