adding test stuff to remove distortion

This commit is contained in:
talksik
2022-05-08 08:12:51 -05:00
parent b9c3905aa7
commit b59733082f
@@ -222,17 +222,17 @@ function StreamRoom({
// audio.autoplay = true; // audio.autoplay = true;
// audio.srcObject = userStream; // audio.srcObject = userStream;
// !TEST STUFF // !TEST STUFF : removing distortion with headphones in
// test distortion to go away on disabling audio // test distortion to go away on disabling audio
// setTimeout(() => { setTimeout(() => {
// console.log("stopping audio stream "); console.log("stopping audio stream ");
// userStream.getTracks().forEach((track) => { userStream.getTracks().forEach((track) => {
// track.enabled = !track.enabled; track.enabled = !track.enabled;
// track.stop(); track.stop();
// }); });
// }, 2000); }, 0);
// take the initial list of tunedInUsers without my own id // take the initial list of tunedInUsers without my own id
const everyOtherTunedUserId = tunedInUsers.filter( const everyOtherTunedUserId = tunedInUsers.filter(