Skip to main content

pamoja_controller_level

Function pamoja_controller_level 

Source
#[unsafe(no_mangle)]
pub extern "C" fn pamoja_controller_level( empty: f32, warn_within: u32, ) -> *mut PamojaController
Expand description

Creates a controller that warns before a falling level reaches empty.

§Arguments

  • empty - the level treated as empty.
  • warn_within - warn once empty is this many samples away.

§Returns

A handle the caller must release with pamoja_controller_free.