|
YAACC - UPNP Client and Server
|
A PcmFeeder as a FeedOutput: the real socket, the real clock, the format of the stream.
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. | |
| boolean | isRunning () |
| False once the feed failed or was closed. | |
| int | getQueuedBytes () |
| Bytes that wait to be sent. | |
| void | close () |
| Stops the feed and closes the connection. | |
| String | statistics () |
| Counters for the log of a device test (chunks, silence, late chunks, re-anchors, dropped bytes): numbers only, never an address or a name. | |
Public Member Functions inherited from de.yaacc.multiroom.feed.FeedOutput | |
Public Member Functions inherited from de.yaacc.multiroom.feed.PcmSink | |
Static Public Attributes | |
| static final FeedOutputFactory | FACTORY |
Opens real feeders in SnapcastStreams#FORMAT. | |
A PcmFeeder as a FeedOutput: the real socket, the real clock, the format of the stream.
| void de.yaacc.snapcast.feed.PcmFeederOutput.close | ( | ) |
Stops the feed and closes the connection.
May block for seconds: not on the main thread.
Implements de.yaacc.multiroom.feed.FeedOutput.

| void de.yaacc.snapcast.feed.PcmFeederOutput.discard | ( | ) |
The audio handed over so far is stale (a seek, a stop, a flush of the player): drop what is waiting.
Implements de.yaacc.multiroom.feed.PcmSink.

| int de.yaacc.snapcast.feed.PcmFeederOutput.getQueuedBytes | ( | ) |
Bytes that wait to be sent.
Implements de.yaacc.multiroom.feed.FeedOutput.

| boolean de.yaacc.snapcast.feed.PcmFeederOutput.isRunning | ( | ) |
False once the feed failed or was closed.
Implements de.yaacc.multiroom.feed.FeedOutput.
| String de.yaacc.snapcast.feed.PcmFeederOutput.statistics | ( | ) |
Counters for the log of a device test (chunks, silence, late chunks, re-anchors, dropped bytes): numbers only, never an address or a name.
Implements de.yaacc.multiroom.feed.FeedOutput.

| boolean de.yaacc.snapcast.feed.PcmFeederOutput.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.
Implements de.yaacc.multiroom.feed.PcmSink.

|
static |
Opens real feeders in SnapcastStreams#FORMAT.