feat(ncm §21): 边下边播阶段1+2——stream_src流式源+decoder双路open_cb+下载线程预缓冲/stall联动+P2 HTTP空闲超时+cache fd写者+stream_sim全矩阵PCM金标准(0真实请求,未部署)
This commit is contained in:
1 parent
dbee37e1d6
commit
9e25db77cc
18 files changed
+1335
-136
No files matched your search
@@ -90,6 +90,10 @@ typedef struct ncm_play_run {
|
||||
int64_t dl_total; /* 本曲标称大小(song_url 返回;0=未知) */
|
||||
int has_track; /* 当前是否有可播曲目(含 url 获取中) */
|
||||
int eff_level; /* 实际生效音质档(§20;≠用户档时播放页标注「已降级至 xx」;-1=未定) */
|
||||
/* 边下边播统计(§21,stream_src 搬运,播放线程写/UI 读) */
|
||||
int underruns; /* 本曲 read_cb 追上下载的等待次数 */
|
||||
uint64_t underrun_ms; /* 本曲 read_cb 累计等待 ms */
|
||||
int stalled; /* 1=下载停滞(单次等待>1s,播放线程已对 audiod pause;UI 缓冲菊花) */
|
||||
/* 播放曲快照(REPORT §17):run_song 起播时把歌曲对象整体拷入(mu 保护),
|
||||
* 之后播放/歌词/IPC/UI 全读快照而非窗口——窗口滑出当前播放曲也不影响播放。 */
|
||||
ncm_song_t play_song;
|
||||
|
||||
Reference in new issue
Block a user