|
YAACC - UPNP Client and Server
|
One stream of the server: the PCM of its producer goes through the Chunker (stream clock, 20 ms chunks), the StreamActivity (idle or playing), the ChunkEncoder, and out to the clients of the groups that play the stream.
More...

Classes | |
| interface | Sink |
| Where the chunks go and what the stream tells about itself. More... | |
Public Member Functions | |
| StreamPipeline (String id, int sampleRate, int frameBytes, ChunkEncoder encoder, Sink sink) | |
| String | id () |
| ChunkEncoder | encoder () |
| int | chunkBytes () |
| long | waitMicros (long nowMicros) |
How long the producer's reader waits before the next read (see Chunker#waitMicros). | |
| void | write (byte[] data, int offset, int length, long nowMicros) |
PCM from the producer, read at nowMicros (server clock). | |
| void | producerGone () |
| The producer went: the stream is idle and its clock starts again with the next producer. | |
One stream of the server: the PCM of its producer goes through the Chunker (stream clock, 20 ms chunks), the StreamActivity (idle or playing), the ChunkEncoder, and out to the clients of the groups that play the stream.
One producer thread calls write; header() may be read from any thread.