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:
1 parent
2380f233b5
commit
5d261717fe
14 files changed
+829
-89
No files matched your search
@@ -32,6 +32,12 @@ public record AppSettings
|
||||
/// <summary>Target; the plan gets as close as the song lengths allow.</summary>
|
||||
public int AdMinutesPerHour { get; init; } = 20;
|
||||
|
||||
/// <summary>Playback device for the listeners; <c>null</c> is the Windows default device.</summary>
|
||||
public string? BroadcastDevice { get; init; }
|
||||
|
||||
/// <summary>Playback device for the person at the desk; <c>null</c> means no device of its own.</summary>
|
||||
public string? MonitorDevice { get; init; }
|
||||
|
||||
public static string DefaultPath { get; } = Path.Combine(
|
||||
Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "Radiosender", "settings.json");
|
||||
|
||||
|
||||
Reference in new issue
Block a user