2016-03-01 17:40:38 +00:00
|
|
|
|
|
|
|
#define DEBUG_DEBUG 0 /* debug info, not for normal use */
|
|
|
|
#define DEBUG_INFO 1 /* all info about process */
|
|
|
|
#define DEBUG_NOTICE 2 /* something unexpected happens */
|
|
|
|
#define DEBUG_ERROR 3 /* there is an error with this software */
|
|
|
|
|
|
|
|
#define DSENDER 0
|
|
|
|
#define DSOUND 1
|
2016-03-15 18:26:13 +00:00
|
|
|
#define DDSP 2
|
|
|
|
#define DANETZ 3
|
|
|
|
#define DBNETZ 4
|
2016-02-16 17:56:55 +00:00
|
|
|
#define DCNETZ 5
|
|
|
|
#define DNMT 6
|
2016-05-01 17:51:56 +00:00
|
|
|
#define DAMPS 7
|
2017-06-10 13:30:20 +00:00
|
|
|
#define DR2000 8
|
2017-11-12 14:59:48 +00:00
|
|
|
#define DJOLLY 9
|
|
|
|
#define DFRAME 10
|
|
|
|
#define DCALL 11
|
|
|
|
#define DMNCC 12
|
|
|
|
#define DDB 13
|
|
|
|
#define DTRANS 14
|
|
|
|
#define DDMS 15
|
|
|
|
#define DSMS 16
|
|
|
|
#define DSDR 17
|
|
|
|
#define DUHD 18
|
|
|
|
#define DSOAPY 19
|
2018-02-15 06:31:40 +00:00
|
|
|
#define DWAVE 20
|
2018-01-20 15:03:47 +00:00
|
|
|
#define DRADIO 21
|
2016-03-01 17:40:38 +00:00
|
|
|
|
2018-02-15 06:27:49 +00:00
|
|
|
void get_win_size(int *w, int *h);
|
|
|
|
|
2016-07-31 13:09:46 +00:00
|
|
|
#define PDEBUG(cat, level, fmt, arg...) _printdebug(__FILE__, __FUNCTION__, __LINE__, cat, level, -1, fmt, ## arg)
|
|
|
|
#define PDEBUG_CHAN(cat, level, fmt, arg...) _printdebug(__FILE__, __FUNCTION__, __LINE__, cat, level, CHAN, fmt, ## arg)
|
2016-10-07 05:52:17 +00:00
|
|
|
void _printdebug(const char *file, const char *function, int line, int cat, int level, int chan, const char *fmt, ...) __attribute__ ((__format__ (__printf__, 7, 8)));
|
2016-03-01 17:40:38 +00:00
|
|
|
|
2016-05-15 18:31:42 +00:00
|
|
|
const char *debug_amplitude(double level);
|
2017-01-27 16:17:39 +00:00
|
|
|
const char *debug_db(double level_db);
|
2016-05-15 18:31:42 +00:00
|
|
|
|
2016-06-12 08:50:55 +00:00
|
|
|
void debug_list_cat(void);
|
|
|
|
int parse_debug_opt(const char *opt);
|
|
|
|
|
2016-03-01 17:40:38 +00:00
|
|
|
extern int debuglevel;
|
|
|
|
|
2017-12-03 08:30:54 +00:00
|
|
|
extern void (*clear_console_text)(void);
|
|
|
|
extern void (*print_console_text)(void);
|
|
|
|
|
|
|
|
extern int debug_limit_scroll;
|
|
|
|
|