1. 重新编译 PortAudio 启用 ALSA 支持(原先编译时未启用任何音频后端, 导致设备数为 0,Pa_GetDefaultInputDevice() 返回 -1) 2. 修复 getDeviceList() 中 Pa_Terminate/Pa_Initialize 顺序错误 (先 Terminate 再 Initialize 会导致状态异常) 3. 使用全局 gPaInitialized 标志管理 PortAudio 生命周期, 避免多次 start/stop 后重复初始化或意外终止 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| app | ||
| audio | ||
| core | ||
| ui | ||
| utils | ||
| main.cpp | ||