2 #ifndef __BSE_GLOBALS_H__
3 #define __BSE_GLOBALS_H__
15 BSE_TIME_RANGE_SHORT = 1,
16 BSE_TIME_RANGE_MEDIUM,
19 #define BSE_TIME_RANGE_SHORT_ms (1000.0 * 0.5)
20 #define BSE_TIME_RANGE_MEDIUM_ms (1000.0 * 10.0)
21 #define BSE_TIME_RANGE_LONG_ms (1000.0 * 200.0)
22 glong bse_time_range_to_ms (BseTimeRangeType time_range);
27 #define BSE_PRIORITY_NOW (-G_MAXINT / 2)
29 #define BSE_PRIORITY_HIGH (G_PRIORITY_HIGH - 10)
31 #define BSE_PRIORITY_NEXT (G_PRIORITY_HIGH - 5)
33 #define BSE_PRIORITY_NOTIFY (G_PRIORITY_DEFAULT - 1)
35 #define BSE_PRIORITY_NORMAL (G_PRIORITY_DEFAULT)
36 #define BSE_PRIORITY_GLUE (BSE_PRIORITY_NORMAL)
38 #define BSE_PRIORITY_UPDATE (G_PRIORITY_HIGH_IDLE + 5)
40 #define BSE_PRIORITY_BACKGROUND (G_PRIORITY_LOW + 500)
41 guint bse_idle_now (GSourceFunc
function,
43 guint bse_idle_next (GSourceFunc
function,
45 guint bse_idle_notify (GSourceFunc
function,
47 guint bse_idle_normal (GSourceFunc
function,
49 guint bse_idle_update (GSourceFunc
function,
51 guint bse_idle_background (GSourceFunc
function,
53 gboolean bse_idle_remove (guint
id);
54 guint bse_idle_timed (guint64 usec_delay,
66 #define BSE_TRANSPOSE_FACTOR(st) (bse_transpose_factor (CLAMP (st, -132, +132)))
70 void bse_globals_init (
void);
73 gdouble bse_db_to_factor (gdouble dB);
74 gdouble bse_db_from_factor (gdouble factor,
76 #define BSE_MINDB (-96)