Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我目前正在考虑如何实现一个应用程序,为多个音频接口提供不同的声音。例如,如果我有第二张声卡可供使用。
据我研究,Web Audio 的 AudioContext 只提供一个目标。我还没有看到选择实际目标硬件的方法。
谁能想到解决这个问题的方法?
没有。它将使用您的系统默认设置。
您可以使用 setSinkid() 将音频/视频元素中的音频输出到指定的输出设备
videoElement.setSinkId(deviceID).then().catch()