-
-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9755d98
commit e08e8d3
Showing
8 changed files
with
60 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"buildMajor":1,"buildMinor":125,"buildRevision":185,"buildTag":"dev","buildDate":"Mon Dec 11 2023","build":"1.125.185 dev"} | ||
{"buildMajor":1,"buildMinor":125,"buildRevision":186,"buildTag":"dev","buildDate":"Mon Dec 11 2023","build":"1.125.186 dev"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
client/src/client/services/socket/handlers/voice/HandleToggleDeafenCommand.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { getGlobalState, setGlobalState } from '../../../../../state/store'; | ||
import { VoiceModule } from '../../../voice/VoiceModule'; | ||
|
||
export function HandleVoiceDeafen() { | ||
const newState = !getGlobalState().settings.voicechatDeafened; | ||
setGlobalState({ settings: { voicechatDeafened: newState }, voiceState: { deafenedBefore: true } }); | ||
VoiceModule.peerManager.setDeafened(newState); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"buildMajor":1,"buildMinor":125,"buildRevision":185,"buildTag":"dev","buildDate":"Mon Dec 11 2023","build":"1.125.185 dev"} | ||
{"buildMajor":1,"buildMinor":125,"buildRevision":186,"buildTag":"dev","buildDate":"Mon Dec 11 2023","build":"1.125.186 dev"} |
17 changes: 17 additions & 0 deletions
17
...aftmend/openaudiomc/generic/networking/packets/client/voice/PacketClientToggleDeafen.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.craftmend.openaudiomc.generic.networking.packets.client.voice; | ||
|
||
import com.craftmend.openaudiomc.generic.networking.abstracts.AbstractPacket; | ||
import com.craftmend.openaudiomc.generic.networking.abstracts.PacketChannel; | ||
import com.craftmend.openaudiomc.generic.networking.payloads.client.voice.ClientVoiceChatToggleMicrophonePayload; | ||
|
||
public class PacketClientToggleMicrophone extends AbstractPacket { | ||
|
||
public PacketClientToggleMicrophone(ClientVoiceChatToggleMicrophonePayload payload) { | ||
super( | ||
payload, | ||
PacketChannel.CLIENT_OUT_TOGGLE_MIC, | ||
null | ||
); | ||
} | ||
|
||
} |
11 changes: 11 additions & 0 deletions
11
...naudiomc/generic/networking/payloads/client/voice/ClientVoiceChatToggleDeafenPayload.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.craftmend.openaudiomc.generic.networking.payloads.client.voice; | ||
|
||
import com.craftmend.openaudiomc.generic.networking.abstracts.AbstractPacketPayload; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
|
||
@Data | ||
@AllArgsConstructor | ||
public class ClientVoiceChatToggleDeafenPayload extends AbstractPacketPayload { | ||
|
||
} |