diff --git a/Client/controllers/audioController.js b/Client/controllers/audioController.js index cc57a73..403ab4f 100644 --- a/Client/controllers/audioController.js +++ b/Client/controllers/audioController.js @@ -52,7 +52,7 @@ async function createAudioInstance() { channels: 2, format: "S16_BE", rate: 48000, - device: selectedDevice.name ?? "default", // Use -1 or omit the deviceId to select the default device + device: selectedDevice.name ?? "default", // Omit the deviceId to select the default device periodSize: 100, //(48000 / 1000) * 20, //(48000 * 16 * 2) / 1000 * 20 // (48000 * (16 / 8) * 2) / 60 / 1000 * 20 //0.025 * 48000 / 2 periodTime: undefined, // highwaterMark: 3840