home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Large Pack of OldSkool DOS MOD Trackers
/
beaversweeper_v101.zip
/
src
/
Globals.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
2003-01-06
|
626b
|
29 lines
#include "stdafx.h"
#include "MIDIInput.h"
#include "Configuration.h"
MIDIInput *g_midi_input = 0;
UINT g_midi_device = 0;
UINT g_patposadd, g_chanposadd;
void GLOBALS_INIT(void)
{
g_midi_input = new MIDIInput();
DWORD device = CONFIGURATION_GETDWORD( _T("MIDI"), _T("Device"), 0 );
g_patposadd = CONFIGURATION_GETDWORD( _T("Editor"), _T("PatPosAdd"), 1 );
g_chanposadd = CONFIGURATION_GETDWORD( _T("Editor"), _T("ChanPosAdd"), 1 );
if (device > 0)
g_midi_input->start( device - 1 );
g_midi_device = device;
}
void GLOBALS_DESTROY(void)
{
delete g_midi_input;
g_midi_input = 0;
}