Is there a way to feed multiple audio interfaces with Web Audio?

955 views Asked by At

I am currently thinking about how to realise an app that feeds multiple audio interfaces with different sounds. For example if I have a second sound card at disposal.

As far as I researched the AudioContext of Web Audio only feeds a single destination. I haven't seen a way to select the actual destination hardware.

Can anyone think of a way to work around this?

2

There are 2 answers

7
Kevin Ennis On BEST ANSWER

Nope. It'll use whatever your system default is.

0
Steve Seguin On

You can output audio from an audio/video element to a specified output device using setSinkid()

videoElement.setSinkId(deviceID).then().catch()