[linux] [chromeOS] Recording with BufferSize < 1024 leads to bad audio
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- rust
調査の方向性
Start by tracing how cpal reports the minimum buffer size for Linux audio devices, then inspect the backend path used by ChromeOS’s Linux subsystem. The report points to buffers below 1024 being truncated, but does not identify the responsible layer or a file or test. Done means reporting a minimum size of 1024 where that limit applies and verifying that requested buffers do not lose audio data.
索引モデルが issue の本文から書いたものです。
説明
On ChromeOS, using the Linux subsystem the cpal library seems to work correctly and records audio. However if I request buffer size smaller than 1024 (I used 480 and 960 for single-channel, 48 kHz 10 ms or 20 ms chunks) I receive buffers of the requested size that result in incorrect audio when played back (the audio is shorter than expected, higher pitched and has artifacts). After much investigation it seems like those are 1024-buffers truncated to the requested size and the truncated data is lost (instead of being passed in the next callback invocation). Requesting buffers of size 480 leads to ~0.5x audio length, and 960 is almost okay (with just some artifacts), which led me to the 1024 bytes conclusion. If requested BufferSize is >= 1024 then all the audio data is received correctly.
In such cases it would be nice for cpal to report the minimal buffer size as 1024, as opposed to 1.
This is not reproducible on my other Linux machines, and I have no clue which layer of the stack is responsible for truncation.
- 主要言語
- Rust
- スター
- 4k
- フォーク
- 554
- 平均マージ
- 1日 3時間
- マージ済み PR(30日)
- 1
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
RustAudio/cpal のほかの issue
-
API design
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
-
correctness
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
-
aaudio: dynamic buffer tuning never grows the buffer (set_buffer_size_in_frames reports Err on success)対応中かも @dannyward630 が 39 日前に担当しました。 オープンhost - aaudio platform - android
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
-
WebAudio wasm build fails with wasm-bindgen panic=unwind closures対応中かも @bogusyogi が 48 日前に担当しました。 オープンhost - webaudio platform - web
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
PipeWire: dropping callback captures on the realtime worker can terminate the process with SIGXCPUオープンhost - pipewire platform - linux
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
ci: migrate pinned macos-15 runners to macos-26 and macos-26-intel対応中かも @hawkingrei が今日担当しました。 オープンenhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
nowledge-co/hawdb#2224 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
eclipse-score/coverage_tool#95 ·
メンテナーはふだん 2 日以内に返信
-
bug nvim
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100