YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.multiroom.codec.FrameDecoder Interface Reference

Turns the payload of a chunk into 16 bit interleaved PCM (little endian) with the channel count of the stream. More...

Inheritance diagram for de.yaacc.multiroom.codec.FrameDecoder:
Inheritance graph
Collaboration diagram for de.yaacc.multiroom.codec.FrameDecoder:
Collaboration graph

Public Member Functions

byte[] decode (byte[] payload) throws DecoderException
 
void reset ()
 Forgets partial state (after a lost connection): the next chunk starts a fresh stream.
 
long droppedPartialBytes ()
 Bytes of incomplete frames thrown away so far (statistics).
 
void close ()
 Frees the decoder.
 

Detailed Description

Turns the payload of a chunk into 16 bit interleaved PCM (little endian) with the channel count of the stream.

Member Function Documentation

◆ close()

void de.yaacc.multiroom.codec.FrameDecoder.close ( )

Frees the decoder.

Safe to call twice.

Implemented in de.yaacc.multiroom.codec.PcmFrameDecoder.

◆ decode()

byte[] de.yaacc.multiroom.codec.FrameDecoder.decode ( byte[] payload) throws DecoderException
Returns
whole frames of PCM; empty when the chunk holds no complete audio yet
Exceptions
DecoderExceptionwhen the chunk can not be decoded; the caller drops the chunk

Implemented in de.yaacc.multiroom.codec.PcmFrameDecoder.

◆ droppedPartialBytes()

long de.yaacc.multiroom.codec.FrameDecoder.droppedPartialBytes ( )

Bytes of incomplete frames thrown away so far (statistics).

Implemented in de.yaacc.multiroom.codec.PcmFrameDecoder.

Referenced by de.yaacc.multiroom.engine.ClientEngine.status().

Here is the caller graph for this function:

◆ reset()

void de.yaacc.multiroom.codec.FrameDecoder.reset ( )

Forgets partial state (after a lost connection): the next chunk starts a fresh stream.

Implemented in de.yaacc.multiroom.codec.PcmFrameDecoder.

Referenced by de.yaacc.multiroom.engine.ClientEngine.onConnectionLost(), and de.yaacc.multiroom.engine.ClientEngine.tick().

Here is the caller graph for this function:

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