Persist channel DRED settings
Build and test / test (macos-latest) (push) Canceled after 0s
Build and test / test (ubuntu-24.04) (push) Canceled after 0s
Build and test / test (windows-latest) (push) Canceled after 0s
Build and test / apple-client (push) Canceled after 0s

This commit is contained in:
2026-09-22 14:11:36 +02:00
parent 8471eac363
commit 7c4708c3de
9 changed files with 101 additions and 11 deletions
@@ -78,6 +78,25 @@ public class WindowsManagedClientTests
Assert.Empty(alice.ManagedClient.LocalStreams);
}
[Fact]
public async Task WindowsChannelEditorSettingsRoundTripFromServer()
{
await using var fixture = new ServerFixture();
using (var accounts = new AccountStore(Path.Combine(fixture.Directory, "voicecat.db")))
await accounts.CreateAccountAsync("Admin", "secret", true);
using var client = new Client("Admin", "test", tofuStorePath: Path.Combine(fixture.Directory, "admin.pins"));
await Login(client, fixture, true);
ChannelInfo music = client.ListChannels().Single(c => c.Name == "Music Room");
var expected = new AudioConfigInfo(0, true, 48_000, 128_000, 20, 1, true, 15, true, 10, true);
var edit = new ChannelEditInfo(music.Id, music.ParentId, music.Name, music.Topic,
music.PasswordProtected, null, music.MaxUsers, music.SortOrder, expected);
Assert.Equal(VcResult.Ok, client.EditChannel(edit));
await Until(client, () => client.ListChannels().Single(c => c.Id == music.Id).Audio.Dred);
Assert.Equal(expected, client.ListChannels().Single(c => c.Id == music.Id).Audio);
}
[Fact]
public async Task WindowsScreenAudioPreservesDistinctStereoChannels()
{