Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

render: measure decode jitter and shrink the 2 s processed buffer toward media3's ~0.5 s

オープン
#185 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
活発
技術スタック
c

調査の方向性

Start with Feeder.targetDepth and its resumeDepth counterpart, then read ADR 0018 for the renderer's roughly once-a-second pull and ADR 0013 for upstream read-ahead. Measure the worst gap between pumps and decode time per chunk on an older device and on the network path before changing anything. Done means a measured justification for the new depth, with resumeDepth adjusted to match and docs/usage.md:319 updated if the stated effect latency changes.

索引モデルが issue の本文から書いたものです。

説明

idea

The feeder keeps 2 s of processed PCM written ahead of the renderer clock (Feeder.targetDepth). Since #183, that is purely a cushion against decode or upstream stalls. The network cushion is really the growing-file read-ahead upstream (Shuttle2 uses 60 s, ADR 0013), unprocessed.

media3 splits it the same way: it keeps about 500 ms of PCM in the AudioTrack (DefaultAudioTrackBufferSizeProvider, DEFAULT_PCM_BUFFER_DURATION_US) and 50 s of compressed samples upstream (DefaultLoadControl). Effects are heard about one PCM depth later (docs/usage.md:319), so a shallower depth means EQ, ReplayGain and Voice Boost changes are heard sooner.

Before changing it, measure the decode jitter: the worst gap between pumps, and decode time per chunk on an older device and on the network path. The depth must outlast the renderer's roughly once-a-second pull (ADR 0018). Candidate: about 1 s, with resumeDepth scaled to match.

Superseded if flush-on-effect-change lands, since effect latency would then stop depending on depth. Context: timusus/shuttle2#1064, #183.

主要言語
C
スター
0
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

timusus/AudioPlaybackKit のほかの issue

timusus/AudioPlaybackKit の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。