From c4768d3c76a77da935a635135214842bc98b6ab6 Mon Sep 17 00:00:00 2001 From: Chigozirim Igweamaka Date: Tue, 11 Jun 2024 03:34:12 +0100 Subject: [PATCH] Remove recordData fallbacks --- client/src/App.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/client/src/App.js b/client/src/App.js index d28a055..6f29cbb 100644 --- a/client/src/App.js +++ b/client/src/App.js @@ -11,8 +11,8 @@ import "react-toastify/dist/ReactToastify.css"; import { MediaRecorder, register } from "extendable-media-recorder"; import { connect } from "extendable-media-recorder-wav-encoder"; -// var socket = io("http://localhost:5000"); -var socket = io("https://localport.online:4443/"); +var socket = io("http://localhost:5000"); +// var socket = io("https://localport.online:4443/"); function App() { const [stream, setStream] = useState(); @@ -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) {