mirror of
https://github.com/DarthAffe/KeyboardAudioVisualizer.git
synced 2026-11-11 13:06:26 +00:00
Added volume prescaling-option to resolve #3
This commit is contained in:
1 parent
1cef641c62
commit
4543dcb787
10 files changed
+99
-62
No files matched your search
@@ -25,6 +25,16 @@ namespace KeyboardAudioVisualizer.UI
|
||||
}
|
||||
}
|
||||
|
||||
public bool EnableAudioPrescale
|
||||
{
|
||||
get => ApplicationManager.Instance.Settings.EnableAudioPrescale;
|
||||
set
|
||||
{
|
||||
ApplicationManager.Instance.Settings.EnableAudioPrescale = value;
|
||||
OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
public VisualizationType SelectedPrimaryVisualization
|
||||
{
|
||||
get => ApplicationManager.Instance.Settings[VisualizationIndex.Primary].SelectedVisualization;
|
||||
|
||||
@@ -57,7 +57,8 @@
|
||||
<AdornerDecorator>
|
||||
<DockPanel LastChildFill="{Binding Source={x:Static keyboardAudioVisualizer:ApplicationManager.Instance}, Path=Visualizations[(helper:VisualizationIndex)Primary], Converter={StaticResource VisualizationToLastChildFillConverter}}">
|
||||
<GroupBox DockPanel.Dock="Top">
|
||||
<controls:GradientEditor Gradient="{Binding Source={x:Static keyboardAudioVisualizer:ApplicationManager.Instance}, Path=Settings[(helper:VisualizationIndex)Primary].Gradient}" />
|
||||
<controls:GradientEditor Gradient="{Binding Source={x:Static keyboardAudioVisualizer:ApplicationManager.Instance}, Path=Settings[(helper:VisualizationIndex)Primary].Gradient}"
|
||||
ToolTip="Defines the gradient that's drawed on the device. Usage:
 Left click inside the preview to add a new stop.
 Left-click stop to change the color or move it.
 Right-click stop to remove it.
" />
|
||||
</GroupBox>
|
||||
|
||||
<GroupBox Margin="0,8,0,0" DockPanel.Dock="Top">
|
||||
@@ -189,6 +190,11 @@
|
||||
attached:SliderValue.Unit="FPS"
|
||||
ToolTip="Defines how fast the data is updated.
Low values can reduce CPU-usage but will cause stuttering." />
|
||||
|
||||
<Label controls:Form.IsLabel="True" Content="Fix Volume" />
|
||||
<CheckBox VerticalAlignment="Center"
|
||||
IsChecked="{Binding EnableAudioPrescale}"
|
||||
ToolTip="Scales the audio signal inverse to the OS-master-volume.
This might (depending on the system) lead to decrased performance
 -> only activate it if you need it." />
|
||||
|
||||
<Label controls:Form.LineBreaks="1" controls:Form.IsLabel="True" Content="Devices:" />
|
||||
</controls:Form>
|
||||
</Grid>
|
||||
|
||||
Reference in new issue
Block a user