diff options
Diffstat (limited to 'src/libaudcore/runtime.h')
-rw-r--r-- | src/libaudcore/runtime.h | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/src/libaudcore/runtime.h b/src/libaudcore/runtime.h index c599e04..570f948 100644 --- a/src/libaudcore/runtime.h +++ b/src/libaudcore/runtime.h @@ -45,6 +45,13 @@ enum class OutputReset { ResetPlugin }; +enum class OutputStream { + AsDecoded, + AfterReplayGain, + AfterEffects, + AfterEqualizer +}; + namespace audlog { enum Level { @@ -62,7 +69,7 @@ namespace audlog void unsubscribe (Handler handler); void log (Level level, const char * file, int line, const char * func, - const char * format, ...); + const char * format, ...) __attribute__ ((__format__ (__printf__, 5, 6))); const char * get_level_name (Level level); } @@ -72,18 +79,20 @@ namespace audlog #define AUDINFO(...) do { audlog::log (audlog::Info, __FILE__, __LINE__, __FUNCTION__, __VA_ARGS__); } while (0) #define AUDDBG(...) do { audlog::log (audlog::Debug, __FILE__, __LINE__, __FUNCTION__, __VA_ARGS__); } while (0) -void aud_init_paths (); -void aud_cleanup_paths (); - const char * aud_get_path (AudPath id); void aud_set_headless_mode (bool headless); bool aud_get_headless_mode (); +// Note that the UserDir and PlaylistDir paths vary depending on the instance +// number. Therefore, calling aud_set_instance() after these paths have been +// referenced, or after aud_init(), is an error. +void aud_set_instance (int instance); +int aud_get_instance (); + void aud_set_mainloop_type (MainloopType type); MainloopType aud_get_mainloop_type (); -/* Requires: aud_init_paths() */ void aud_init_i18n (); void aud_config_set_defaults (const char * section, const char * const * entries); |