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
4
dist/better-xcloud.user.js
vendored
4
dist/better-xcloud.user.js
vendored
@ -4014,10 +4014,14 @@ var BxExposed = {
|
||||
$media.muted = true;
|
||||
});
|
||||
}
|
||||
try {
|
||||
const audioCtx = STATES.currentStream.audioContext;
|
||||
const source = audioCtx.createMediaStreamSource(audioStream);
|
||||
const gainNode = audioCtx.createGain();
|
||||
source.connect(gainNode).connect(audioCtx.destination);
|
||||
} catch (e) {
|
||||
BxLogger.error("setupGainNode", e);
|
||||
}
|
||||
},
|
||||
handleControllerShortcut: ControllerShortcut.handle,
|
||||
resetControllerShortcut: ControllerShortcut.reset
|
||||
|
Loading…
x
Reference in New Issue
Block a user