The limits of what a stream source may tell the engine (issue #330, package refactor): the ranges of the audio format, of the buffer, the latency and the volume, and the size of a chunk.
More...
|
|
static final int | MAX_CODEC_NAME_BYTES = 32 |
| | Bytes of a codec name; a longer one can not be on the allow-list.
|
| |
|
static final int | MAX_CODEC_HEADER_PAYLOAD = 64 * 1024 |
| | Bytes of the header payload of an allowed codec (a WAVE header is 44, a FLAC header about 42 bytes).
|
| |
|
static final int | MIN_SAMPLE_RATE = 8000 |
| |
|
static final int | MAX_SAMPLE_RATE = 192_000 |
| |
|
static final int | MIN_CHANNELS = 1 |
| |
|
static final int | MAX_CHANNELS = 8 |
| |
|
static final int | MIN_BUFFER_MS = 0 |
| |
|
static final int | MAX_BUFFER_MS = 10_000 |
| |
|
static final int | DEFAULT_BUFFER_MS = 1000 |
| |
|
static final int | MIN_LATENCY_MS = -10_000 |
| |
|
static final int | MAX_LATENCY_MS = 10_000 |
| |
|
static final int | MIN_VOLUME = 0 |
| |
|
static final int | MAX_VOLUME = 100 |
| |
|
static final int | MAX_CHUNK_PAYLOAD = 8 * 1024 * 1024 - 12 |
| | The payload of a chunk that fits into a message of the largest size the Snapcast protocol allows (8 bytes of timestamp and 4 of length).
|
| |
The limits of what a stream source may tell the engine (issue #330, package refactor): the ranges of the audio format, of the buffer, the latency and the volume, and the size of a chunk.
Shared by every protocol that feeds the playback engine (Snapcast, Sendspin): a value outside of a range is clamped or refused. Pure.
The documentation for this class was generated from the following file:
- /github/workspace/yaacc/src/main/java/de/yaacc/multiroom/codec/StreamLimits.java