Add emit proxy fix and HRTF audio mode

This commit is contained in:
Jage9
2026-03-09 04:06:46 -04:00
parent ef656b2b39
commit a34a9f7f42
13 changed files with 663 additions and 123 deletions

View File

@@ -5,6 +5,7 @@ export type MainModeCommand =
| 'editNickname'
| 'toggleMute'
| 'toggleOutputMode'
| 'toggleSpatialMode'
| 'toggleLoopback'
| 'toggleVoiceLayer'
| 'toggleItemLayer'
@@ -45,6 +46,7 @@ export type MainModeCommand =
*/
export function resolveMainModeCommand(code: string, shiftKey: boolean): MainModeCommand | null {
if (code === 'KeyN') return shiftKey ? null : 'editNickname';
if (code === 'KeyH') return shiftKey ? null : 'toggleSpatialMode';
if (code === 'KeyM') return shiftKey ? 'toggleOutputMode' : 'toggleMute';
if (code === 'Digit1') return shiftKey ? 'toggleLoopback' : 'toggleVoiceLayer';
if (code === 'Digit2') return shiftKey ? null : 'toggleItemLayer';

View File

@@ -38,6 +38,14 @@ const MAIN_MODE_COMMANDS: MainModeCommandDescriptor[] = [
section: 'Audio',
isAvailable: () => true,
},
{
id: 'toggleSpatialMode',
label: 'Toggle classic or HRTF spatial audio',
shortcut: 'H',
tooltip: 'Switch between classic stereo panning and HRTF spatial audio.',
section: 'Audio',
isAvailable: () => true,
},
{
id: 'toggleOutputMode',
label: 'Toggle stereo or mono output',