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
Spec has landed. I will whip up a simple implementation first where you can specify the output device during AudioContext construction.
The feature to change the output device while the context is running will be very tricky. cpal may not offer the desired functionality - RustAudio/cpal#373 . Cubeb does have some callbacks for device switching. It probably warrants a dedicated ticket to handle disconnection of the current device.
Additional complexity is that the sample rate may change in this case which requires extra bookkeeping throughout the render thread
Official spec will land soon:
WebAudio/web-audio-api#2400 (comment)
It should be quite straightforward for us to port to the cpal and cubeb backend
The text was updated successfully, but these errors were encountered: