XenevaOS
Loading...
Searching...
No Matches
i_cdmus.h
Go to the documentation of this file.
1//
2// Copyright(C) 1993-1996 Id Software, Inc.
3// Copyright(C) 1993-2008 Raven Software
4//
5// This program is free software; you can redistribute it and/or
6// modify it under the terms of the GNU General Public License
7// as published by the Free Software Foundation; either version 2
8// of the License, or (at your option) any later version.
9//
10// This program is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13// GNU General Public License for more details.
14//
15
16// i_cdmus.h
17
18#ifndef __ICDMUS__
19#define __ICDMUS__
20
21#define CDERR_NOTINSTALLED 10 // MSCDEX not installed
22#define CDERR_NOAUDIOSUPPORT 11 // CD-ROM Doesn't support audio
23#define CDERR_NOAUDIOTRACKS 12 // Current CD has no audio tracks
24#define CDERR_BADDRIVE 20 // Bad drive number
25#define CDERR_BADTRACK 21 // Bad track number
26#define CDERR_IOCTLBUFFMEM 22 // Not enough low memory for IOCTL
27#define CDERR_DEVREQBASE 100 // DevReq errors
28
29extern int cd_Error;
30
31int I_CDMusInit(void);
32void I_CDMusPrintStartup(void);
33int I_CDMusPlay(int track);
34int I_CDMusStop(void);
35int I_CDMusResume(void);
36int I_CDMusSetVolume(int volume);
37int I_CDMusFirstTrack(void);
38int I_CDMusLastTrack(void);
39int I_CDMusTrackLength(int track);
40
41#endif
int I_CDMusFirstTrack(void)
Definition i_cdmus.c:169
int I_CDMusInit(void)
Definition i_cdmus.c:38
int I_CDMusResume(void)
Definition i_cdmus.c:145
int I_CDMusLastTrack(void)
Definition i_cdmus.c:202
int I_CDMusPlay(int track)
Definition i_cdmus.c:107
int I_CDMusTrackLength(int track)
Definition i_cdmus.c:219
int I_CDMusStop(void)
Definition i_cdmus.c:130
int cd_Error
Definition i_cdmus.c:36
int I_CDMusSetVolume(int volume)
Definition i_cdmus.c:160
void I_CDMusPrintStartup(void)
Definition i_cdmus.c:92