YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.multiroom.engine.StreamSettings Class Reference

The settings of a stream that a source gives the playback engine: how long the source buffers, the latency setting of this client, the mute state and the volume. More...

Inheritance diagram for de.yaacc.multiroom.engine.StreamSettings:
Inheritance graph
Collaboration diagram for de.yaacc.multiroom.engine.StreamSettings:
Collaboration graph

Public Member Functions

 StreamSettings (int bufferMs, int latencyMs, boolean muted, int volume)
 
int getBufferMs ()
 How long the source buffers: a chunk is played this long after it was recorded.
 
int getLatencyMs ()
 The latency setting of this client in milliseconds: positive values play earlier.
 
boolean isMuted ()
 
int getVolume ()
 0 to 100.
 
boolean equals (Object other)
 
int hashCode ()
 

Static Public Member Functions

static int clamp (int value, int min, int max)
 

Detailed Description

The settings of a stream that a source gives the playback engine: how long the source buffers, the latency setting of this client, the mute state and the volume.

Shared by every protocol that feeds the engine. The values are clamped on the way in (a source is not trusted): bufferMs 0 to 10 000, latency -10 000 to 10 000, volume 0 to 100. The Snapcast wire message (ServerSettingsMessage) extends it.


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