feat: 重构音频系统,移除外部依赖并新增WAV格式支持

- 移除install和update脚本中的aukit/austream下载配置与目标,不再部署辅助脚本
- 替换station_broadcast.lua的aukit库为CC内置dfpwm模块,重写音频播放逻辑
- 添加原生扬声器API支持,支持WAV格式音频播放
- 重写云端服务器音频处理逻辑,支持直接传输WAV文件无需预转换
- 新增WAV文件时长解析、音频序列合成等辅助功能
This commit is contained in:
2026-07-31 19:29:38 +08:00
parent e4b4fa5cdb
commit c73bceaec7
5 changed files with 320 additions and 120 deletions
+2 -6
View File
@@ -1,6 +1,4 @@
local STATION_BROADCAST_URL = "https://cloud.fse-media.group/d/API/StationBroadcast/station_broadcast.lua?sign=xXsMwezjnEs4c6QrjkJkbvz1rARokmm87zwDcDDS5dk=:0"
local AUKIT_URL = "https://cloud.fse-media.group/d/API/StationBroadcast/aukit.lua?sign=02_QDktYbSrHrtCDsFlKMkbEOWJGDautZaOtWkvg5q8=:0"
local AUSTREAM_URL = "https://cloud.fse-media.group/d/API/StationBroadcast/austream.lua?sign=DrLbf9CIX1ZY8DaL8vliZiCMQzGos10nhG26Wf5lbgA=:0"
local STATION_BROADCAST_URL = "https://gitea.fse-media.group/Henry_Du/CC-StationBroadcast/raw/commit/e4b4fa5cdb2bc42279fd87098fef0d27a90e23d5/station_broadcast.lua"
local function fetch(url)
if not http then
@@ -66,9 +64,7 @@ local function downloadTo(url, path)
end
local targets = {
{ url = STATION_BROADCAST_URL, path = shell.resolve("/startup") },
{ url = AUKIT_URL, path = shell.resolve("/aukit.lua") },
{ url = AUSTREAM_URL, path = shell.resolve("/austream.lua") }
{ url = STATION_BROADCAST_URL, path = shell.resolve("/startup") }
}
for _, t in ipairs(targets) do