home *** CD-ROM | disk | FTP | other *** search
/ Large Pack of OldSkool DOS MOD Trackers / beaversweeper_v101.zip / src / MIDIInput.h < prev    next >
C/C++ Source or Header  |  2003-01-06  |  609b  |  35 lines

  1. #ifndef __MIDI_INPUT_H__
  2. #define __MIDI_INPUT_H__
  3.  
  4. #include <mmsystem.h>
  5.  
  6. class MIDIInput {
  7.     public:
  8.         MIDIInput(void);
  9.         virtual ~MIDIInput();
  10.  
  11.         void start( UINT device );
  12.         void stop( void );
  13.  
  14.         void setmsgdest( HWND hwnd );
  15.         void endmsgdest( HWND hwnd ); // end a relationship.. guarantee that there will be no msgs to this hwnd
  16.  
  17.     protected:
  18.  
  19.         void thread(void);
  20.  
  21.     private:
  22.  
  23.         UINT m_curdevice;
  24.         BOOL m_isopen;
  25.         HMIDIIN m_handle;
  26.         HANDLE m_thread;
  27.         HWND m_msgdest;
  28.         DWORD m_threadid;
  29.  
  30.         friend static DWORD WINAPI MIDIThreadProc( LPVOID lpParameter );
  31. };
  32.  
  33.  
  34. #endif
  35.