finally made WinMM MIDI driver work properly by fixing internal data structures

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1591 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-09-08 22:24:00 +00:00
parent d5ac6b97d3
commit f7c62d29c8
3 changed files with 34 additions and 58 deletions

View File

@@ -118,7 +118,7 @@ public:
} ;
private slots:
private:// slots:
void updateDeviceList( void );
@@ -127,19 +127,12 @@ private:
void closeDevices( void );
#ifdef LMMS_BUILD_WIN32
static DWORD WINAPI midiThreadProc( midiWinMM * _midi );
DWORD threadProc( void );
static void CALLBACK inputCallback( HMIDIIN _hm, UINT _msg,
static void WINAPI CALLBACK inputCallback( HMIDIIN _hm, UINT _msg,
DWORD_PTR _inst,
DWORD_PTR _param1,
DWORD_PTR _param2 );
void handleInputEvent( HMIDIIN _hm, DWORD _ev );
HANDLE m_threadHandle;
DWORD m_threadId;
volatile bool m_isRunning;
QMap<HMIDIIN, QString> m_inputDevices;
QMap<HMIDIOUT, QString> m_outputDevices;
#endif