|
YAACC - UPNP Client and Server
|
The decoder of the pcm codec: the payload is raw samples in the format of the (validated) WAVE header. More...


Public Member Functions | |
| PcmFrameDecoder (WaveFormat format, int maxFramesPerChunk) | |
| 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. | |
Public Member Functions inherited from de.yaacc.multiroom.codec.FrameDecoder | |
The decoder of the pcm codec: the payload is raw samples in the format of the (validated) WAVE header.
A trailing partial frame is dropped (counted), nothing is sized from the payload except through the validated frame size and the frame limit, and samples of more than 16 bit are converted.
| void de.yaacc.multiroom.codec.PcmFrameDecoder.close | ( | ) |
| byte[] de.yaacc.multiroom.codec.PcmFrameDecoder.decode | ( | byte[] | payload | ) | throws DecoderException |
| DecoderException | when the chunk can not be decoded; the caller drops the chunk |
Implements de.yaacc.multiroom.codec.FrameDecoder.

| long de.yaacc.multiroom.codec.PcmFrameDecoder.droppedPartialBytes | ( | ) |
Bytes of incomplete frames thrown away so far (statistics).
Implements de.yaacc.multiroom.codec.FrameDecoder.
| void de.yaacc.multiroom.codec.PcmFrameDecoder.reset | ( | ) |
Forgets partial state (after a lost connection): the next chunk starts a fresh stream.
Implements de.yaacc.multiroom.codec.FrameDecoder.