shithub: heretic

ref: 677f65df02d856f72640a5cb4886342f5f565b1f
dir: /i_cdmus.h/

View raw version

//**************************************************************************
//**
//** i_cdmus.h : Heretic 2 : Raven Software, Corp.
//**
//** $Revision: 421 $
//** $Date: 2009-05-22 16:08:37 +0300 (Fri, 22 May 2009) $
//**
//**************************************************************************

#ifndef __ICDMUS__
#define __ICDMUS__

#define CDERR_NOTINSTALLED	10	/* MSCDEX not installed */
#define CDERR_NOAUDIOSUPPORT	11	/* CD-ROM Doesn't support audio */
#define CDERR_NOAUDIOTRACKS	12	/* Current CD has no audio tracks */
#define CDERR_BADDRIVE		20	/* Bad drive number */
#define CDERR_BADTRACK		21	/* Bad track number */
#define CDERR_IOCTLBUFFMEM	22	/* Not enough low memory for IOCTL */
#define CDERR_DEVREQBASE	100	/* DevReq errors */

extern boolean i_CDMusic;	/* is cdaudio initialized */
extern int cdaudio;		/* boolean: is cd audio enabled or disabled */

extern int i_CDTrack;
extern int i_CDCurrentTrack;
extern int i_CDMusicLength;
extern int oldTic;

extern int cd_Error;

int I_CDMusInit(void);
int I_CDMusPlay(int track);
int I_CDMusStop(void);
int I_CDMusResume(void);
int I_CDMusSetVolume(int volume);
int I_CDMusFirstTrack(void);
int I_CDMusLastTrack(void);
int I_CDMusTrackLength(int track);
void I_CDMusUpdate(void);
void I_CDMusShutdown(void);

#endif	/* __ICDMUS__ */