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

output stream dies with small buffer size

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

メンテナーはふだん 1 日以内に返信

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

評価

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

調査の方向性

The issue links a reproducer under languages/rust/cpal; start by reading that example and run it with cargo run on Ubuntu 18.04, then switch tabs or trigger another resource-intensive action. Investigate why the output stream stops being called with a small buffer after that activity; done means the stream continues or reports an error instead of falling silent.

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

説明

host - alsa platform - linux

Hey,

Thanks for the ability to specify buffer size! Took me a while to think to just instantiate my own StreamConfig.

Anyway, I've been keeping an eye on cpal because I want to move off the portaudio crate, which has similar performance to what I'm reporting here.

In particular, I find that the output stream stops getting called with no error when I'm using a small buffer size, and I do something "resource-intensive" like alt-tab to another program. This is distinct from an underrun, which also happens sometimes. However, to my knowledge, underruns should cause a click, not eternal silence. But I think this problem is the next domino falling after an underrun.

My system is running Ubuntu 18.04.

Code here, just cargo run and switch tabs in your browser or other "resource-intensive" actions.

Curious if others have experience attempting low-latency with cpal, or what else I could offer to clarify what's going on.

Best,
Dan

主要言語
Rust
スター
4k
フォーク
554
平均マージ
3日 3時間
マージ済み PR(30日)
4

環境構築

はじめの一歩

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

RustAudio/cpal のほかの issue

RustAudio/cpal の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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