Add an option for mono mic capture in ZoomIt

This commit is contained in:
foxmsft
2026-02-05 01:05:33 +01:00
committed by Alex Mihaiuc
parent bb4c548a4b
commit 450d6db343
12 changed files with 71 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
<local:NavigablePage
<local:NavigablePage
x:Class="Microsoft.PowerToys.Settings.UI.Views.ZoomItPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
@@ -281,6 +281,12 @@
<tkcontrols:SettingsCard Name="ZoomItRecordCaptureAudio" ContentAlignment="Left">
<CheckBox x:Uid="ZoomIt_Record_CaptureAudio" IsChecked="{x:Bind ViewModel.RecordCaptureAudio, Mode=TwoWay}" />
</tkcontrols:SettingsCard>
<tkcontrols:SettingsCard Name="ZoomItRecordMicMonoMix" ContentAlignment="Left">
<CheckBox
x:Uid="ZoomIt_Record_MicMonoMix"
IsChecked="{x:Bind ViewModel.RecordMicMonoMix, Mode=TwoWay}"
Visibility="{x:Bind ViewModel.RecordCaptureAudio, Mode=OneWay}" />
</tkcontrols:SettingsCard>
<tkcontrols:SettingsCard
Name="ZoomItRecordMicrophone"
x:Uid="ZoomIt_Record_Microphone"

View File

@@ -4718,6 +4718,9 @@ The break timer font matches the text font.</value>
<data name="ZoomIt_Record_CaptureAudio.Content" xml:space="preserve">
<value>Capture audio input</value>
</data>
<data name="ZoomIt_Record_MicMonoMix.Content" xml:space="preserve">
<value>Mono</value>
</data>
<data name="ZoomIt_Record_Microphone.Header" xml:space="preserve">
<value>Microphone</value>
</data>

View File

@@ -878,6 +878,20 @@ namespace Microsoft.PowerToys.Settings.UI.ViewModels
}
}
public bool RecordMicMonoMix
{
get => _zoomItSettings.Properties.MicMonoMix.Value;
set
{
if (_zoomItSettings.Properties.MicMonoMix.Value != value)
{
_zoomItSettings.Properties.MicMonoMix.Value = value;
OnPropertyChanged(nameof(RecordMicMonoMix));
NotifySettingsChanged();
}
}
}
public string RecordMicrophoneDeviceId
{
get => _zoomItSettings.Properties.MicrophoneDeviceId.Value;