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

The Snapcast message with the codec and the header that initialises its decoder: a CodecHeader with its wire format. More...

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

Public Member Functions

MessageType type ()
 
- Public Member Functions inherited from de.yaacc.multiroom.codec.CodecHeader
Codec getCodec ()
 
byte[] getPayload ()
 A copy of the header, to initialise the decoder with.
 
WaveFormat getWaveFormat ()
 The parsed WAVE header; null for another codec.
 
FlacStreamInfo getFlacStreamInfo ()
 The parsed STREAMINFO; null for another codec.
 
OpusHeader getOpusHeader ()
 The parsed Opus header; null for another codec.
 
VorbisHeaders getVorbisHeaders ()
 The parsed Vorbis headers; null for another codec.
 
int getSampleRate ()
 
int getChannels ()
 
int getBitsPerSample ()
 The sample size of the PCM that comes out of the decoder (16 for the codecs opus and ogg).
 
boolean equals (Object other)
 
int hashCode ()
 
- Public Member Functions inherited from de.yaacc.snapcast.protocol.SnapcastBinaryMessage

Static Public Member Functions

static CodecHeaderMessage of (Codec codec, byte[] header)
 
- Static Public Member Functions inherited from de.yaacc.multiroom.codec.CodecHeader
static CodecHeader parse (Codec codec, byte[] header) throws StreamFormatException
 

Additional Inherited Members

- Protected Member Functions inherited from de.yaacc.multiroom.codec.CodecHeader
 CodecHeader (Codec codec, byte[] payload, WaveFormat pcmFormat, FlacStreamInfo flacStreamInfo, OpusHeader opusHeader, VorbisHeaders vorbisHeaders)
 
 CodecHeader (CodecHeader other)
 For a subclass that adds a wire format: the same description.
 

Detailed Description

The Snapcast message with the codec and the header that initialises its decoder: a CodecHeader with its wire format.

Only the codecs of the allow-list (Codec) exist, and the header is validated when the message is made.

Member Function Documentation

◆ of()

static CodecHeaderMessage de.yaacc.snapcast.protocol.CodecHeaderMessage.of ( Codec codec,
byte[] header )
static
Exceptions
IllegalArgumentExceptionwhen the header is not a valid header of that codec

Reimplemented from de.yaacc.multiroom.codec.CodecHeader.

Here is the call graph for this function:

◆ type()

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

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