From 5547fedd7ca360ce802c6b1d30555307ca7514ad Mon Sep 17 00:00:00 2001 From: Chigozirim Igweamaka Date: Tue, 11 Jun 2024 08:45:46 +0100 Subject: [PATCH] Revert "Download recording and set fallbacks for record data" This reverts commit d65bbade43f78ea4cf5be8ea3009e3ee72d8ccca. --- client/src/App.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/src/App.js b/client/src/App.js index 2c967cc..a6cef10 100644 --- a/client/src/App.js +++ b/client/src/App.js @@ -159,7 +159,7 @@ function App() { const reader = new FileReader(); cleanUp(); - downloadRecording(blob); + // downloadRecording(blob); reader.readAsArrayBuffer(blob); reader.onload = (event) => { @@ -178,9 +178,9 @@ function App() { const recordData = { audio: rawAudio, - channels: audioConfig.channelCount || 1, - sampleRate: audioConfig.sampleRate || 44100, - sampleSize: audioConfig.sampleSize || 16, + channels: audioConfig.channelCount, + sampleRate: audioConfig.sampleRate, + sampleSize: audioConfig.sampleSize, }; if (sendRecordingRef.current) {