-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMIDI.H
45 lines (27 loc) · 892 Bytes
/
CMIDI.H
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef __CMIDI_H_
#define __CMIDI_H_
class CMidi
{
BOOL m_bMidiInitialized;
UINT m_uMCIDeviceID; // MCI Device ID
BOOL m_bMidiIsPlaying;
BOOL m_bMute;
HWND m_hwndToNotify;
CString m_sLastMidi;
CString m_sMidiFile;
void Close(); //stop; restart only from begginig
void MciPlay();
void MciStop();
void PlayFile(); // play a module from the beggining
public:
LRESULT CallBack(WPARAM wFlags,LPARAM lDevID);
CMidi();
~CMidi();
void Init(HWND hWnd); // play a module from the beggining
void Play(char * MidiName); // play a module from the beggining
void Mute() ; // pause a module
void UnMute(); // continue playing after p.ause
void Stop(); //stop; restart only from begginig
void UnInit();
};
#endif // __CMIDI_H_