ui(audio): a 0 dB unity tick on both volume faders

The faders run -60 to +6 dB but the ladder tops out at 0 dBFS, so the last 6 dB looked like
dead track. The tick marks unity at 60/66 of the track: what is left of it is boost, and now it
reads that way. Both mic and desktop faders; the lip-sync slider is milliseconds and gets none.
This commit is contained in:
2026-11-01 15:13:21 -08:00
parent b00bf48b9d
commit 1074a46e9c
+26 -4
View File
@@ -56,8 +56,20 @@
<TextBlock DockPanel.Dock="Right" Width="56" TextAlignment="Right" FontSize="10"
FontFamily="{StaticResource FontFamily.Mono}" VerticalAlignment="Center"
Foreground="{StaticResource Brush.OnSurfaceVariant}" Text="{Binding MicVolumeDbLabel}"/>
<Slider Minimum="-60" Maximum="6" SmallChange="0.5" LargeChange="3"
Value="{Binding MicVolumeDb, Mode=TwoWay}" VerticalAlignment="Center"/>
<Grid VerticalAlignment="Center" ToolTip="The tick is 0 dB (unity) — above it you are boosting">
<Slider Minimum="-60" Maximum="6" SmallChange="0.5" LargeChange="3"
Value="{Binding MicVolumeDb, Mode=TwoWay}" VerticalAlignment="Center"/>
<!-- Unity tick: 60 dB of range below 0 and 6 dB above it, so the marker
sits at 60/66 — it makes the last stretch read as boost, not dead track. -->
<Grid IsHitTestVisible="False">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="60*"/>
<ColumnDefinition Width="6*"/>
</Grid.ColumnDefinitions>
<Rectangle Grid.Column="0" Width="1" HorizontalAlignment="Right"
Fill="{StaticResource Brush.Outline}"/>
</Grid>
</Grid>
</DockPanel>
</Grid>
</Border>
@@ -104,8 +116,18 @@
<TextBlock DockPanel.Dock="Right" Width="56" TextAlignment="Right" FontSize="10"
FontFamily="{StaticResource FontFamily.Mono}" VerticalAlignment="Center"
Foreground="{StaticResource Brush.OnSurfaceVariant}" Text="{Binding GameVolumeDbLabel}"/>
<Slider Minimum="-60" Maximum="6" SmallChange="0.5" LargeChange="3"
Value="{Binding GameVolumeDb, Mode=TwoWay}" VerticalAlignment="Center"/>
<Grid VerticalAlignment="Center" ToolTip="The tick is 0 dB (unity) — above it you are boosting">
<Slider Minimum="-60" Maximum="6" SmallChange="0.5" LargeChange="3"
Value="{Binding GameVolumeDb, Mode=TwoWay}" VerticalAlignment="Center"/>
<Grid IsHitTestVisible="False">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="60*"/>
<ColumnDefinition Width="6*"/>
</Grid.ColumnDefinitions>
<Rectangle Grid.Column="0" Width="1" HorizontalAlignment="Right"
Fill="{StaticResource Brush.Outline}"/>
</Grid>
</Grid>
</DockPanel>
</Grid>