YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.snapcast.server.ChunkEncoder Interface Reference

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

Inheritance diagram for de.yaacc.snapcast.server.ChunkEncoder:
Inheritance graph
Collaboration diagram for de.yaacc.snapcast.server.ChunkEncoder:
Collaboration graph

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.
 

Detailed Description

Makes the payload of a chunk from its PCM, and the CodecHeader that goes with it (one encoder per stream).

Member Function Documentation

◆ close()

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().

Here is the caller graph for this function:

◆ encode()

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().

Here is the caller graph for this function:

◆ header()

CodecHeaderMessage de.yaacc.snapcast.server.ChunkEncoder.header ( )

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