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

Decodes one packet at a time: the part of a platform decoder that OggFrameDecoder needs (replaced by a fake in tests). More...

Collaboration diagram for de.yaacc.multiroom.codec.PacketDecoder:
Collaboration graph

Public Member Functions

byte[] decodePacket (byte[] packet) throws DecoderException
 
void reset ()
 Forgets partial state: the next packet starts a fresh stream.
 
void close ()
 Frees the decoder.
 

Detailed Description

Decodes one packet at a time: the part of a platform decoder that OggFrameDecoder needs (replaced by a fake in tests).

Member Function Documentation

◆ close()

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

Frees the decoder.

Safe to call twice.

◆ decodePacket()

byte[] de.yaacc.multiroom.codec.PacketDecoder.decodePacket ( byte[] packet) throws DecoderException
Returns
whole frames of 16 bit interleaved PCM (little endian); empty when the decoder holds the packet back

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