mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-06 23:57:19 +02:00
Update better-xcloud.user.js
This commit is contained in:
parent
567770c86e
commit
3418cdd666
12
dist/better-xcloud.user.js
vendored
12
dist/better-xcloud.user.js
vendored
@ -4014,10 +4014,14 @@ var BxExposed = {
|
|||||||
$media.muted = true;
|
$media.muted = true;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
const audioCtx = STATES.currentStream.audioContext;
|
try {
|
||||||
const source = audioCtx.createMediaStreamSource(audioStream);
|
const audioCtx = STATES.currentStream.audioContext;
|
||||||
const gainNode = audioCtx.createGain();
|
const source = audioCtx.createMediaStreamSource(audioStream);
|
||||||
source.connect(gainNode).connect(audioCtx.destination);
|
const gainNode = audioCtx.createGain();
|
||||||
|
source.connect(gainNode).connect(audioCtx.destination);
|
||||||
|
} catch (e) {
|
||||||
|
BxLogger.error("setupGainNode", e);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
handleControllerShortcut: ControllerShortcut.handle,
|
handleControllerShortcut: ControllerShortcut.handle,
|
||||||
resetControllerShortcut: ControllerShortcut.reset
|
resetControllerShortcut: ControllerShortcut.reset
|
||||||
|
Loading…
x
Reference in New Issue
Block a user