Cauldron2D.Net.Audio.Governor (Cauldron2D.Net v0.1.2)

Copy Markdown View Source

Sets the sessions' rate from the node's load under :dynamic music: every five seconds it reads how busy the schedulers were, drops the rate to 22 050 Hz once they pass 60%, and brings it back to the policy's once they fall under 30%, holding each for thirty seconds at least. Under any other music policy it leaves the rate alone.

Summary

Functions

How busy the schedulers were over the last five seconds, 0.0 to 1.0.

Returns a specification to start this module under a supervisor.

Functions

busy()

@spec busy() :: float()

How busy the schedulers were over the last five seconds, 0.0 to 1.0.

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.