source: trunk/src/winmm/dbglocal.h@ 22012

Last change on this file since 22012 was 21358, checked in by rlwalsh, 16 years ago

add FlashWaveOut class to winmm - see Ticket #2

File size: 1.6 KB
Line 
1/* $Id: dbglocal.h,v 1.6 2001-07-20 15:35:00 sandervl Exp $ */
2
3/*
4 * debug logging functions for OS/2
5 *
6 * Overrides main dprintf macros
7 *
8 * Copyright 2000 Sander van Leeuwen
9 *
10 * Project Odin Software License can be found in LICENSE.TXT
11 */
12#ifndef __DBGLOCAL_H__
13#define __DBGLOCAL_H__
14
15#ifdef DEBUG
16//Parses environment variable for selective enabling/disabling of logging
17void ParseLogStatusWINMM();
18
19#define DBG_ENVNAME "dbg_winmm"
20#define DBG_ENVNAME_LVL2 "dbg_winmm_lvl2"
21
22#define DBG_os2timer 0
23#define DBG_waveout 1
24#define DBG_waveoutdart 2
25#define DBG_time 3
26#define DBG_wavein 4
27#define DBG_auxiliary 5
28#define DBG_auxos2 6
29#define DBG_mixer 7
30#define DBG_midi 8
31#define DBG_irtmidi 9
32#define DBG_midistrm 10
33#define DBG_initterm 11
34#define DBG_mci 12
35#define DBG_joy 13
36#define DBG_mmio 14
37#define DBG_driver 15
38#define DBG_playsound 16
39#define DBG_joyos2 17
40#define DBG_resource 18
41#define DBG_waveindart 19
42#define DBG_waveoutdaud 20
43#define DBG_waveoutbase 21
44#define DBG_waveinoutbase 22
45#define DBG_waveoutflash 23
46#define DBG_MAXFILES 24
47
48extern USHORT DbgEnabledWINMM[DBG_MAXFILES];
49extern USHORT DbgEnabledLvl2WINMM[DBG_MAXFILES];
50
51#ifdef dprintf
52#undef dprintf
53#endif
54
55#define dprintf(a) if(DbgEnabledWINMM[DBG_LOCALLOG] == 1) WriteLog a
56
57#ifdef dprintf2
58#undef dprintf2
59#endif
60
61#define dprintf2(a) if(DbgEnabledLvl2WINMM[DBG_LOCALLOG] == 1) WriteLog a
62
63#else
64
65#define ParseLogStatusWINMM()
66
67#endif //DEBUG
68
69#endif
Note: See TracBrowser for help on using the repository browser.