Versions in this module Expand all Collapse all v0 v0.1.1 May 7, 2026 v0.1.0 Mar 27, 2026 Changes in this version + const AudioFrameHeaderSize + func MarshalEnvelope(msgType MessageType, data any) ([]byte, error) + type AudioFrame struct + Payload []byte + SampleOffset uint64 + SeqNum uint32 + func UnmarshalAudioFrame(data []byte) (*AudioFrame, error) + func (f *AudioFrame) MarshalBinary() []byte + type ClientInfo struct + Addr string + ID string + Name string + type ClientListMsg struct + Clients []ClientInfo + type Envelope struct + Data json.RawMessage + Type MessageType + func ParseEnvelope(data []byte) (*Envelope, error) + type HelloMsg struct + AudioLatencyNs int64 + Name string + type MessageType string + const MsgClientList + const MsgHello + const MsgReject + const MsgServerState + const MsgStartPlayback + const MsgStopPlayback + const MsgTrackChange + type RejectMsg struct + Reason string + type ServerState string + const StateLobby + const StatePlaying + const StateStopped + type ServerStateMsg struct + State ServerState + type StartPlaybackMsg struct + Channels int + SampleRate int + StartAtNs int64 + TrackTitle string + type StopPlaybackMsg struct + Reason string + type TrackChangeMsg struct + Channels int + SampleRate int + StartAtNs int64 + TrackTitle string