|
YAACC - UPNP Client and Server
|
Where decoded PCM goes: the PcmFeeder, or a fake in a test.
More...


Public Member Functions | |
| boolean | write (byte[] data, int offset, int length) |
| Hands over PCM. | |
| void | discard () |
| The audio handed over so far is stale (a seek, a stop, a flush of the player): drop what is waiting. | |
Where decoded PCM goes: the PcmFeeder, or a fake in a test.
The bytes are raw little-endian PCM in the format of the feed (for a Snapcast stream 48000 Hz, 16 bit, stereo).
| void de.yaacc.multiroom.feed.PcmSink.discard | ( | ) |
The audio handed over so far is stale (a seek, a stop, a flush of the player): drop what is waiting.
Implemented in de.yaacc.sendspin.hub.PcmStreamer, de.yaacc.snapcast.feed.PcmFeeder, and de.yaacc.snapcast.feed.PcmFeederOutput.
Referenced by de.yaacc.snapcast.feed.SnapcastFeedController.pause().

| boolean de.yaacc.multiroom.feed.PcmSink.write | ( | byte[] | data, |
| int | offset, | ||
| int | length ) |
Hands over PCM.
May wait for a short, bounded time when the sink is full (back pressure); never grows without limit. The data is copied before this returns.
Implemented in de.yaacc.sendspin.hub.PcmStreamer, de.yaacc.snapcast.feed.PcmFeeder, and de.yaacc.snapcast.feed.PcmFeederOutput.