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
Are there any plans to add setSinkId to this library?
Could I just cast the AudioContext object from this library into the native one and call that method? Or maybe the other way around -- cast a native AudioContext to the standardized one? Or what's the best way of accessing the native AudioContext?
The text was updated successfully, but these errors were encountered:
thanks for creating this issue. My current thinking is that it could probably be implemented in a standards compliant way with very minimal effort.
audioContext.sinkId would always return '' since that is the default. And any call to audioContext.sinkId() would throw a NotSupportedError in those browsers that don't implement it.
The spec also includes a step to check the 'speaker-selection' permission but this seems to be in no browser so far.
I've got my eyes on this one, since I'd love to be able to "natively" choose the output device in higher level libraries like Tone.js without needing to go through extra steps like outlined in Tonejs/Tone.js#877
I would expect audioContext.sinkId to return the currently assigned sinkId which could be '' if you haven't explicitly set it via audioContext.setSinkId(...) right?
Chromium seems to have added support to choose the output device (see WebAudio/web-audio-api#2498)
Are there any plans to add
setSinkId
to this library?Could I just cast the AudioContext object from this library into the native one and call that method? Or maybe the other way around -- cast a native AudioContext to the standardized one? Or what's the best way of accessing the native AudioContext?
The text was updated successfully, but these errors were encountered: