YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.sendspin.hub.GroupFormat Class Reference

The one PCM format of a group (linking): every member gets the same audio, so the rate is one that all members list. More...

Collaboration diagram for de.yaacc.sendspin.hub.GroupFormat:
Collaboration graph

Static Public Member Functions

static boolean usable (int rate)
 A rate that gives whole chunks of 20 ms and that the streamer takes (a multiple of 50, 8000 to 384000 Hz).
 
static int commonRate (List< Set< Integer > > memberRates)
 

Detailed Description

The one PCM format of a group (linking): every member gets the same audio, so the rate is one that all members list.

48000 Hz is preferred, then 44100 Hz, then the highest other rate that every member has. A rate that does not give whole chunks of 20 ms (a multiple of 50, from 8000 to 384000) is never chosen. Pure.

Member Function Documentation

◆ commonRate()

static int de.yaacc.sendspin.hub.GroupFormat.commonRate ( List< Set< Integer > > memberRates)
static
Parameters
memberRatesfor every member the PCM rates (16 bit, stereo) it lists
Returns
the rate of the group, or 0 if there is none (no member, or no rate that all have)

Referenced by de.yaacc.sendspin.SendspinHub.groupRateOf(), and de.yaacc.sendspin.SendspinHub.link().

Here is the call graph for this function:
Here is the caller graph for this function:

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