feat: 打通音频整链,被控端送 PCM、主控端 waveOut 播放
- android_receiver:音频改为直接送 PCM16(FLAG_PCM=0x80),不再走 Opus 编码 (仓库未打包 libopus,MediaCodec Opus 多数设备不可用,主控端也无解码器) - rust_core:新增 media/audio 播放队列(上限 1 秒、按帧对齐切分、超出丢最旧) - rust_core:音频分片校验 MAC 后按 FLAG_PCM 入队,旧 Opus 包明确丢弃并记日志 - rust_core:新增 ttstd_audio_next / ttstd_audio_pending / ttstd_audio_stats - flutter_sender:新增 audio_player(waveOut)轮询播放队列,有数据才打开设备、静音 3 秒自动关闭 - docs:README 增加音频链路章节与 PCM 取舍,AGENTS 记录 FLAG_PCM 约定
This commit is contained in:
1 parent
c6925d0890
commit
37b2cff82b
14 files changed
+468
-19
No files matched your search
@@ -7,6 +7,7 @@ project(runner LANGUAGES CXX)
|
||||
#
|
||||
# Any new source files that you add to the application should be added here.
|
||||
add_executable(${BINARY_NAME} WIN32
|
||||
"audio_player.cpp"
|
||||
"flutter_window.cpp"
|
||||
"main.cpp"
|
||||
"utils.cpp"
|
||||
@@ -43,6 +44,8 @@ target_link_libraries(${BINARY_NAME} PRIVATE flutter_wrapper_plugin)
|
||||
target_link_libraries(${BINARY_NAME} PRIVATE "dwmapi.lib")
|
||||
# Media Foundation:H.264/HEVC 解码到 Flutter 外部纹理。
|
||||
target_link_libraries(${BINARY_NAME} PRIVATE "mfplat.lib" "mfuuid.lib" "mf.lib" "ole32.lib")
|
||||
# 音频播放:waveOut 输出 Rust Core 队列里的 PCM。
|
||||
target_link_libraries(${BINARY_NAME} PRIVATE "winmm.lib")
|
||||
target_include_directories(${BINARY_NAME} PRIVATE "${CMAKE_SOURCE_DIR}")
|
||||
|
||||
# Run the Flutter tool portions of the build. This must not be removed.
|
||||
|
||||
Reference in new issue
Block a user