feat: mix music and microphone on one program output

Songs and the microphone now go through one audio channel,
ProgramOutput, instead of each opening its own device. ProgramMixer
builds two mixes in one pass: the broadcast for the listeners and a
monitor mix for the person at the desk. With two playback devices each
mix gets its own device; with one device the desk hears the monitor
mix.

The Schedule page gets a microphone button that works with or without
a running broadcast, and sliders for the music and microphone levels
on the broadcast, the music level on the monitor, and an option to
hear the broadcast exactly. The Settings page lets the user choose
the playback devices for the broadcast and for themselves.

MusicPlayer plays its tracks into the mixer; pause takes the track
out of the mix and resume puts it back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
fraujulianandClaude Opus 5.5 committed 2026-11-25 08:21:13 +01:00
1 parent 2380f233b5
commit 5d261717fe
14 files changed
+829 -89

No files matched your search

@@ -90,6 +90,34 @@
</Grid>
</Border>
<!-- Audio devices -->
<Border Style="{StaticResource Card}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="220" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<ui:TextBlock Grid.ColumnSpan="2" FontTypography="BodyStrong" Text="Audio-Ausgabe" />
<Label Grid.Row="1" Margin="0,12,0,0" VerticalAlignment="Center"
Content="Sendung (für andere)" Target="{Binding ElementName=BroadcastDeviceBox}" />
<ComboBox x:Name="BroadcastDeviceBox" Grid.Row="1" Grid.Column="1" Margin="0,12,0,0"
AutomationProperties.Name="Ausgabegerät für die Sendung" />
<Label Grid.Row="2" Margin="0,8,0,0" VerticalAlignment="Center"
Content="Für mich (Kopfhörer)" Target="{Binding ElementName=MonitorDeviceBox}" />
<ComboBox x:Name="MonitorDeviceBox" Grid.Row="2" Grid.Column="1" Margin="0,8,0,0"
AutomationProperties.Name="Ausgabegerät für mich" />
<ui:TextBlock Grid.Row="3" Grid.ColumnSpan="2" Margin="0,12,0,0" TextWrapping="Wrap"
Foreground="{DynamicResource TextFillColorSecondaryBrush}"
Text="Getrennte Lautstärken für dich und für andere brauchen zwei verschiedene Geräte. Mit nur einem Gerät hörst du deinen eigenen Mix." />
</Grid>
</Border>
<!-- Minutes per hour -->
<Border Style="{StaticResource Card}">
<Grid>