Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

No devices on default host on WASM32, specifically Chromium

Đang mở
#811 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức phù hợp với người mới
15/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
rust
Lĩnh vực
audio-video-rtc

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Rust
Star
4k
Fork
554
Merge trung bình
3 ngày 3 giờ
Pull request đã merge (30 ngày)
4

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của RustAudio/cpal

Tất cả issue của RustAudio/cpal

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.