create separate thread for WinMM MIDI
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1586 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -33,8 +33,6 @@
|
||||
#include <mmsystem.h>
|
||||
#endif
|
||||
|
||||
#include <QtCore/QTimer>
|
||||
|
||||
#include "midi_client.h"
|
||||
#include "midi_port.h"
|
||||
|
||||
@@ -129,13 +127,19 @@ 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,
|
||||
DWORD_PTR _inst,
|
||||
DWORD_PTR _param1,
|
||||
DWORD_PTR _param2 );
|
||||
void handleInputEvent( HMIDIIN _hm, DWORD _ev );
|
||||
|
||||
QTimer m_deviceListUpdateTimer;
|
||||
HANDLE m_threadHandle;
|
||||
DWORD m_threadId;
|
||||
volatile bool m_isRunning;
|
||||
|
||||
QMap<HMIDIIN, QString> m_inputDevices;
|
||||
QMap<HMIDIOUT, QString> m_outputDevices;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user