Beast - Music Synthesizer and Composer  0.11.1+10.g2da35
bseglobals.cc File Reference
#include "bseglobals.hh"
#include "bsemain.hh"
Include dependency graph for bseglobals.cc:

Functions

void bse_globals_init (void)
 
double bse_db_to_factor (double dB)
 
double bse_db_from_factor (double factor, double min_dB)
 
long bse_time_range_to_ms (BseTimeRangeType time_range)
 
uint bse_idle_now (GSourceFunc function, void *data)
 
uint bse_idle_next (GSourceFunc function, void *data)
 
uint bse_idle_notify (GSourceFunc function, void *data)
 
uint bse_idle_normal (GSourceFunc function, void *data)
 
uint bse_idle_update (GSourceFunc function, void *data)
 
uint bse_idle_background (GSourceFunc function, void *data)
 
uint bse_idle_timed (guint64 usec_delay, GSourceFunc function, void *data)
 
gboolean bse_idle_remove (uint id)
 

Function Documentation

uint bse_idle_next ( GSourceFunc  function,
void *  data 
)
Parameters
functionuser function
datauser data
Returns
idle handler id, suitable for bse_idle_remove() Execute function (data) inside the main BSE thread as soon as resonably possible. This function is intended to be used by code which needs to execute some portions asyncronously as soon as the BSE core isn't occupied by realtime job handling. This function is MT-safe and may be called from any thread.
uint bse_idle_notify ( GSourceFunc  function,
void *  data 
)
Parameters
functionuser function
datauser data
Returns
idle handler id, suitable for bse_idle_remove() Queue function (data) for execution inside the main BSE thread, similar to bse_idle_now(), albeit with a lower priority. This function is intended to be used by code which emits asyncronous notifications. This function is MT-safe and may be called from any thread.

Referenced by bse_item_gather_items_typed(), and bse_snet_intern_child().

Here is the caller graph for this function:

uint bse_idle_now ( GSourceFunc  function,
void *  data 
)
Parameters
functionuser function
datauser data
Returns
idle handler id, suitable for bse_idle_remove() Execute function (data) inside the main BSE thread as soon as possible. Usually this function should not be used but bse_idle_next() should be used instead. Only callbacks that have hard dependencies on immediate asyncronous execution, preceeding even realtime synthesis job handling should be executed this way. This function is MT-safe and may be called from any thread.
gboolean bse_idle_remove ( uint  id)
Parameters
ididle handler id Remove or unqueue an idle handler queued by bse_idle_now() or one of its variants. This function is MT-safe and may be called from any thread.

Referenced by bse_snet_intern_child().

Here is the caller graph for this function:

uint bse_idle_timed ( guint64  usec_delay,
GSourceFunc  function,
void *  data 
)
Parameters
usec_delaymicrosecond delay
functionuser function
datauser data
Returns
idle handler id, suitable for bse_idle_remove() Execute function (data) with the main BSE thread, similar to bse_idle_now(), after a delay period of usec_delay has passed. This function is MT-safe and may be called from any thread.

Referenced by bse_janitor_progress().

Here is the caller graph for this function: