2 #ifndef __GSL_COMMON_H__
3 #define __GSL_COMMON_H__
11 const gchar* gsl_byte_order_to_string (guint byte_order);
12 guint gsl_byte_order_from_string (
const gchar *
string);
13 Bse::ErrorType gsl_error_from_errno (gint sys_errno,
14 Bse::ErrorType fallback);
15 Bse::ErrorType gsl_error_select (guint n_errors,
16 Bse::ErrorType first_error,
18 Bse::ErrorType gsl_file_check (
const gchar *file_name,
24 typedef guint (*GslProgressFunc) (gpointer data,
27 GslProgressState *pstate);
34 GslProgressFunc pfunc;
36 GslProgressState gsl_progress_state (gpointer data,
37 GslProgressFunc pfunc,
39 void gsl_progress_notify (GslProgressState *pstate,
41 const gchar *detail_format,
43 void gsl_progress_wipe (GslProgressState *pstate);
44 guint gsl_progress_printerr (gpointer message,
47 GslProgressState *pstate);
51 void _gsl_init_fd_pool (
void);
52 void _gsl_init_data_caches (
void);
53 void _gsl_init_loader_gslwave (
void);
54 void _gsl_init_loader_aiff (
void);
55 void _gsl_init_loader_wav (
void);
56 void _gsl_init_loader_oggvorbis (
void);
57 void _gsl_init_loader_mad (
void);
58 void bse_init_loader_gus_patch (
void);
59 void bse_init_loader_flac (
void);
60 #define GSL_N_IO_RETRIES (5)
68 static Rapicorn::Atomic<uint64> global_tick_stamp;
70 static void _init_forgsl ();
77 static void _emit_wakeups (uint64 wakeup_stamp);
88 static WakeupP create_wakeup (
const std::function<
void()> &wakeup);
89 static inline uint64 current () {
return global_tick_stamp; }
90 static inline uint64
max_stamp () {
return 18446744073709551615LLU; }
91 static void _increment ();
92 static void _set_leap (uint64 ticks);
94 typedef TickStamp::WakeupP TickStampWakeupP;
static Update get_last()
Definition: gslcommon.cc:85
The Bse namespace contains all functions of the synthesis engine.
Definition: bstbseutils.cc:67
static uint64 max_stamp()
Maximum stamp value, 2^64-1.
Definition: gslcommon.hh:90
Definition: gslcommon.hh:83
void awake_before(uint64 stamp)
Definition: gslcommon.cc:143
Definition: gslcommon.hh:67
Definition: gslcommon.hh:28
void awake_after(uint64 stamp)
Definition: gslcommon.cc:116
Definition: gslcommon.hh:72