Cleanup session/
Some checks failed
Build Linux Binaries / linux/amd64 (push) Has been cancelled
Build Linux Binaries / linux/arm64 (push) Has been cancelled

This commit is contained in:
2026-07-03 15:55:17 +01:00
parent a4b3838125
commit 552ffceb66
2 changed files with 3 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
/*
* session/session.h client-side mirror of the server's channel/user state.
* session/session.h: client-side mirror of the server's channel/user state.
*
* Populated from ServerStateSnapshot (full snapshot) and incremental UserEvent /
* ChannelEvent messages. Not thread-safe — always called from io_thread_.
@@ -24,7 +24,7 @@ struct Channel {
bool password_protected{false};
uint32_t max_users{0};
uint32_t sort_order{0};
// Authoritative channel AudioConfig (docs/voice.md §3) — mirrors
// Authoritative channel AudioConfig mirrors
// voicecat::v1::AudioConfig field-for-field, same flat shape as Stream below. Populated
// from ServerStateSnapshot / ChannelEvent so the channel-edit dialog can read back the
// current config (the vc_channel read struct now carries these too).
@@ -45,7 +45,7 @@ struct Stream {
uint32_t ssrc{0};
int kind{0};
std::string label;
// Full effective AudioConfig (docs/protocol.md §5), as broadcast by the server in
// Full effective AudioConfig as broadcast by the server in
// StreamInfo.audio — mirrors voicecat::v1::AudioConfig field-for-field so per-channel
// tuning (mono/stereo, bitrate, FEC/DTX, application) is observable client-side, not just
// sample_rate/frame_ms.