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

No devices on default host on WASM32, specifically Chromium

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

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

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

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
15/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
rust

調査の方向性

The issue reports an empty host.devices() iterator for cpal::default_host in a Chromium WASM build, and identifies running in a web worker as the cause. Read the WASM host device enumeration entry point and check the browser constraints for accessing WebAudio from a worker. The report says devices return when enumeration moves to the main worker, so the reported behavior is explained; it also mentions issue #656 as the next problem encountered.

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

説明

platform - web

I'm attempting to use cpal for a browser build of my sound synthesizer, but encountering an issue where cpal::default_host has no output devices - host.devices() iterator is empty.
host.id() returns "WebAudio".

I want to note that I am trying to enumerate devices from a web worker used to emulate threads.

cpal 15.2
Chromium Version 118.0.5993.117 (Official Build) Arch Linux (64-bit)

Edit: still posting this for google-ability, but the issue is the web-worker. Moving to the main worker brings devices back, but results in issue #656 surfacing.

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