YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.snapcast.protocol.WireChunkMessage Class Reference

A piece of the audio stream and the server time at which it was recorded. More...

Inheritance diagram for de.yaacc.snapcast.protocol.WireChunkMessage:
Inheritance graph
Collaboration diagram for de.yaacc.snapcast.protocol.WireChunkMessage:
Collaboration graph

Public Member Functions

 WireChunkMessage (int timestampSec, int timestampUsec, byte[] payload)
 
MessageType type ()
 
- Public Member Functions inherited from de.yaacc.multiroom.engine.StreamChunk
 StreamChunk (int timestampSec, int timestampUsec, byte[] payload)
 
int getTimestampSec ()
 
int getTimestampUsec ()
 
long timestampMicros ()
 The source time of the recording in microseconds.
 
byte[] getPayload ()
 A copy of the payload.
 
int getPayloadLength ()
 
boolean equals (Object other)
 
int hashCode ()
 
- Public Member Functions inherited from de.yaacc.snapcast.protocol.SnapcastBinaryMessage

Static Public Attributes

static final int MAX_PAYLOAD = StreamChunk.MAX_PAYLOAD
 The payload that fits into a message of the largest allowed size (8 bytes of timestamp and 4 of length).
 
- Static Public Attributes inherited from de.yaacc.multiroom.engine.StreamChunk
static final int MAX_PAYLOAD = StreamLimits.MAX_CHUNK_PAYLOAD
 The largest payload (the Snapcast protocol allows 8 MiB for a message: 8 bytes of timestamp and 4 of length are the rest).
 

Additional Inherited Members

- Protected Member Functions inherited from de.yaacc.multiroom.engine.StreamChunk
 StreamChunk (int timestampSec, int timestampUsec, byte[] ownedPayload, boolean owned)
 Takes over a payload that nobody else holds (it was just cut out of a message): no second copy.
 
byte[] payloadView ()
 The payload without a copy, for the wire message that writes it.
 

Detailed Description

A piece of the audio stream and the server time at which it was recorded.

The payload is encoded audio (pcm or flac); it is kept as a private copy.

Member Function Documentation

◆ type()

MessageType de.yaacc.snapcast.protocol.WireChunkMessage.type ( )

The documentation for this class was generated from the following file: