Persist channel DRED settings
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user