This heavily-commented code builds upon the "Simple Web App Example" by adding logic demonstrating how one may offer the user the ability to choose input and output audio devices.
This sample app also allows users to enable or disable input device audio stream post-processing, such as Echo Cancellation.
Changing the value of the input or output device dropdown has an immediate effect:
- The audio stream from the newly-selected input device will be immediately sent to the High Fidelity Spatial Audio Server.
- If the user changes the selected output device, the spatialized audio stream from High Fidelity will immediately begin playing from that output device.
Zach Fox