Partition: pass configuration as struct

This commit is contained in:
Max Kellermann
2021-12-03 20:22:52 +01:00
parent 2384a240e0
commit 95a155b10d
15 changed files with 230 additions and 105 deletions

View File

@@ -101,11 +101,7 @@ handle_newpartition(Client &client, Request request, Response &response)
}
instance.partitions.emplace_back(instance, name,
// TODO: use real configuration
16384,
1024,
AudioFormat::Undefined(),
ReplayGainConfig());
client.GetPartition().config);
auto &partition = instance.partitions.back();
partition.UpdateEffectiveReplayGainMode();