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

Requested buffer size not used on macOS

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

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

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

評価

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

調査の方向性

The report concerns output stream buffer sizing on macOS with CPAL 0.15.0. Start by reading the CoreAudio output stream configuration path and its tests; the payload does not name specific files or tests. Done means determining whether the requested size is supported, documenting the behavior, and exposing the chosen size before playback if the API can provide it.

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

説明

host - coreaudio platform - macos

Hey there! I'm running into the following issue:

  1. I'm enumerating through all the supported_output_configs() and finding one where my preferred buffer size fits within the SupportedBufferSize range.
  2. I call SupportedStreamConfigRange::with_sample_rate().config() on this with a rate within the range
  3. On the resulting StreamConfig, I set the buffer size to my preferred one, knowing it's within range
  4. Build an output stream

The requested buffer size isn't taken into account. When I request 128 I get a stream of 279. Other times I get 512.

Am I doing something wrong? Is this a bug? Or is this a limitation of the CoreAudio framework, and if so:

  • How do other software packages work around this, where you can pick a precise buffer size in the preferences?
  • Shouldn't CPAL document this, and call this variable preferred_buffer_size or something?
  • Is there a way of knowing what max buffer size was decided on for the stream, before I call play() it? I need that information to build my audio chain

This is on macOS Ventura 13.1, with CPAL 0.15.0.

主要言語
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 を短くまとめたダイジェスト。