mirror of
https://github.com/Equicord/Equicord.git
synced 2025-03-31 04:31:58 -04:00
VolumeBooster: Fix error when going back to the default device (#3273)
This commit is contained in:
parent
94ee0c518a
commit
16910c95ad
1 changed files with 1 additions and 1 deletions
|
@ -136,7 +136,7 @@ export default definePlugin({
|
|||
// @ts-expect-error
|
||||
if (data.sinkId != null && data.sinkId !== data.audioContext.sinkId && "setSinkId" in AudioContext.prototype) {
|
||||
// @ts-expect-error https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/setSinkId
|
||||
data.audioContext.setSinkId(data.sinkId);
|
||||
data.audioContext.setSinkId(data.sinkId === "default" ? "" : data.sinkId);
|
||||
}
|
||||
|
||||
data.gainNode.gain.value = data._mute
|
||||
|
|
Loading…
Add table
Reference in a new issue