I have been experimenting with the Web Audio API to generate sounds and play them through various output devices.
In this code snippet, you can connect to two different output devices and play a unique tone on each one.
Everything functions properly when using both the default output and USB outputs.
However, issues arise when utilizing two USB outputs connected to a PC via a USB Hub without external power source.
After a period of time (especially while multitasking on the PC), the sound quality deteriorates or breaks in one or both of the output channels.
I am seeking assistance in pinpointing the root cause of this problem. Any insights or suggestions would be greatly appreciated.
(I also attempted this alternative method, but encountered even more challenges)