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

The FLAC codec of a stream (issue #330, group 5): the CodecHeader is the FLAC stream header (the marker and STREAMINFO), every chunk of 20 ms is one complete FLAC frame. More...

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

Public Member Functions

 FlacChunkEncoder (int sampleRate)
 
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).
 
- Public Member Functions inherited from de.yaacc.snapcast.server.ChunkEncoder
default void close ()
 Frees what the encoder holds (a platform encoder); called when its stream ends.
 

Detailed Description

The FLAC codec of a stream (issue #330, group 5): the CodecHeader is the FLAC stream header (the marker and STREAMINFO), every chunk of 20 ms is one complete FLAC frame.

16 bit stereo only (what the encoder writes); the control port refuses a FLAC stream of another format.

Member Function Documentation

◆ encode()

byte[] de.yaacc.snapcast.server.FlacChunkEncoder.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.

Implements de.yaacc.snapcast.server.ChunkEncoder.

Here is the call graph for this function:

◆ header()

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

The CodecHeader that a client gets first.

Implements de.yaacc.snapcast.server.ChunkEncoder.


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