Switch Muninn RUDP audio to PCM packets

This commit is contained in:
Meta Vens 2026-06-23 17:03:54 +01:00
commit b13fa7d050
8 changed files with 292 additions and 76 deletions

View file

@ -6,7 +6,7 @@ param(
[int]$Channels = 2,
[ValidateSet("Render", "Capture")]
[string]$DataFlow = "Render",
[bool]$Loopback = $true,
[switch]$Loopback,
[ValidateSet("Console", "Multimedia", "Communications")]
[string]$Role = "Console"
)
@ -238,11 +238,6 @@ namespace Mimir {
uint packetFrames;
Check(captureClient.GetNextPacketSize(out packetFrames), "GetNextPacketSize");
if (packetFrames == 0) {
if (silence.Length < idleBytes) {
silence = new byte[idleBytes];
}
output.Write(silence, 0, idleBytes);
output.Flush();
Thread.Sleep(5);
continue;
}