|
YAACC - UPNP Client and Server
|
Makes the payload of a chunk from its PCM, and the CodecHeader that goes with it (one encoder per stream). More...


Classes | |
| class | Pcm |
| The codec that passes the PCM as it is: the CodecHeader is a RIFF WAVE header. More... | |
Public Member Functions | |
| CodecHeaderMessage | header () |
| The CodecHeader that a client gets first. | |
| byte[] | encode (byte[] pcm) |
| The payload of the chunk for these PCM bytes (a whole chunk), or null when there is none (the chunk is left out). | |
| default void | close () |
| Frees what the encoder holds (a platform encoder); called when its stream ends. | |
Makes the payload of a chunk from its PCM, and the CodecHeader that goes with it (one encoder per stream).
| default void de.yaacc.snapcast.server.ChunkEncoder.close | ( | ) |
Frees what the encoder holds (a platform encoder); called when its stream ends.
Safe to call twice.
Implemented in de.yaacc.snapcast.server.OpusChunkEncoder.
Referenced by de.yaacc.snapcast.server.SnapcastServer.addTcpStream().

| byte[] de.yaacc.snapcast.server.ChunkEncoder.encode | ( | byte[] | pcm | ) |
The payload of the chunk for these PCM bytes (a whole chunk), or null when there is none (the chunk is left out).
Called by the thread of the stream only.
Implemented in de.yaacc.snapcast.server.ChunkEncoder.Pcm, de.yaacc.snapcast.server.FlacChunkEncoder, and de.yaacc.snapcast.server.OpusChunkEncoder.
Referenced by de.yaacc.snapcast.server.StreamPipeline.write().

| CodecHeaderMessage de.yaacc.snapcast.server.ChunkEncoder.header | ( | ) |
The CodecHeader that a client gets first.
Implemented in de.yaacc.snapcast.server.ChunkEncoder.Pcm, de.yaacc.snapcast.server.FlacChunkEncoder, and de.yaacc.snapcast.server.OpusChunkEncoder.
Referenced by de.yaacc.snapcast.server.SnapcastServer.applyChange(), and de.yaacc.snapcast.server.SnapcastServer.joined().
