forked from REDPOWAR/glDoom
-
Notifications
You must be signed in to change notification settings - Fork 1
/
i_cd.h
35 lines (28 loc) · 915 Bytes
/
i_cd.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
#ifndef CDDEF
#define CDDEF 1
#include "doomtype.h"
// Global define needed for calling these functions
typedef enum { cd_stop, cd_play, cd_pause, cd_empty, cd_unavail } cdstate;
typedef struct
{
dboolean CDMedia;
char CDCode[18];
DWORD CDPosition;
DWORD CDDevice;
DWORD CDTrack;
DWORD CDTrackCount;
DWORD CDStatus;
DWORD CDTrackList[32];
MCIERROR CDError;
}CD_Data_t;
dboolean CDOpen(HWND hWnd, CD_Data_t *cdd);
dboolean CDCheck(HWND hWnd, CD_Data_t *cdd);
dboolean CDMediaIdentity(HWND hWnd, CD_Data_t *cdd, char *szIdent);
dboolean CDTrackCount(HWND hWnd, CD_Data_t *cdd);
dboolean CDTrackType(HWND hWnd, CD_Data_t *cdd);
dboolean CDTrackPlay(HWND hWnd, CD_Data_t *cdd);
dboolean CDPause(HWND hWnd, CD_Data_t *cdd);
dboolean CDResume(HWND hWnd, CD_Data_t *cdd);
void CDStop(CD_Data_t *cdd);
void CDClose(CD_Data_t *cdd);
#endif