📄 midi.h
字号:
// Midi.h: interface for the CMidi class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_MIDI_H__26D8AE0B_E0B3_11D5_AB08_A00850C10000__INCLUDED_)
#define AFX_MIDI_H__26D8AE0B_E0B3_11D5_AB08_A00850C10000__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <mmsystem.h>
class CMidi
{
public:
CMidi();
~CMidi();
WORD GetDevicID(void);
BOOL Open(CString);
void Close();
BOOL Play();
void Stop();
int GetMidiLen(); // get the total midi length
int GetCurrentMin(); // get current min
int GetCurrentSec(); // get current sec
BOOL IsPlaying();
BOOL SeekTo(int,int);
void Forward(int);
void Backward(int);
int GetTempo(int);
private:
BOOL m_bOpened;
BOOL m_bPaused;
BOOL m_bPlaying;
WORD m_wDeviceID;
};
#endif // !defined(AFX_MIDI_H__26D8AE0B_E0B3_11D5_AB08_A00850C10000__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -