You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm attempting to play audio on wasm32-unknown-unknown. Going through rodio, I receive a NoDevice error when attempting to create an OutputStream. Through some investigation, I believe this comes from cpal::default_host().default_device() returning None. My program works correctly on all native platforms (that I've tried), it only fails on web.
Steps to reproduce
Attempt to get a device via cpal::default_host().default_device() on wasm32-unknown-unknown.
I was able to reproduce this issue on both Chrome and Safari, but could not test on Firefox because I could not get WebGPU to work.
Overview
I'm attempting to play audio on
wasm32-unknown-unknown
. Going throughrodio
, I receive aNoDevice
error when attempting to create anOutputStream
. Through some investigation, I believe this comes fromcpal::default_host().default_device()
returningNone
. My program works correctly on all native platforms (that I've tried), it only fails on web.Steps to reproduce
Attempt to get a device via
cpal::default_host().default_device()
onwasm32-unknown-unknown
.I was able to reproduce this issue on both Chrome and Safari, but could not test on Firefox because I could not get WebGPU to work.
Versions
cpal - v0.15.3
rodio - v0.17.3
Chrome - 124.0.6367.62
Safari - 17.4.1 (19618.1.15.11.14)
rustc:
MacOS:
The text was updated successfully, but these errors were encountered: