fix: 오디오 테스트를 실시간 레벨 미터로 개선
단발성 평균값 → 100ms 간격 실시간 RMS 스트리밍. AudioCaptureService 직접 시작/5초 자동 중지. 테스트 버튼 누르면 레벨 바가 왔다갔다 반응.
This commit is contained in:
parent
7a925bdeb9
commit
6197ceb132
3 changed files with 70 additions and 15 deletions
|
|
@ -178,7 +178,9 @@ const electronAPI = {
|
|||
testDevice: (params: TestDeviceParams) =>
|
||||
invoke<TestDeviceResult>(IPC_CHANNELS.AUDIO.TEST_DEVICE, params),
|
||||
onDeviceChanged: (cb: (e: AudioDeviceChangedEvent) => void): Unsubscribe =>
|
||||
on(IPC_CHANNELS.AUDIO.DEVICE_CHANGED, cb)
|
||||
on(IPC_CHANNELS.AUDIO.DEVICE_CHANGED, cb),
|
||||
onTestLevel: (cb: (e: { level: number }) => void): Unsubscribe =>
|
||||
on('audio:testLevel', cb),
|
||||
},
|
||||
|
||||
// ── Config ─────────────────────────────────────────────
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue