⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mrcdplayer.h

📁 Games programming all in one code chapter 18
💻 H
字号:
 /* 'mrCDPlayer.h' */

 /* Mirus base types header */
#include "mrDatatypes.h"
 /* Mirus error definitions header */
#include "mrError.h"
 /* Standard input/output header file */
#include <stdio.h>
 /* Windows header file */
#include <windows.h>
 /* Windows Multimedia header file */
#include <mmsystem.h>

 /* Include this file only once */
#pragma once

 /* Mirus CD Player class */
class mrCDPlayer
{
protected:
  /* CD information */
 mrUInt32         m_iNumberTracks;
 mrUInt32         m_iCurrentTrack;
 mrInt8           m_szLength [256];

public:
  /* Constructors / Destructor */
 mrCDPlayer (void);
 ~mrCDPlayer (void);

  /* CD player manipulation routines */
 void Eject (void);
 void Play (mrUInt32 iTrack);
 void Stop (void);
 void Update (void);

  /* CD player maintainance routines */
 mrUInt32 GetNumberOfTracks (void);
 mrInt8 * GetLength (void);
 mrUInt32 GetCurrentTrack (void);
 mrBool32 IsReady (void);
};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -