]> icculus.org git repositories - btb/d2x.git/blob - arch/dos/cdrom.c
never mind - that would be pointless
[btb/d2x.git] / arch / dos / cdrom.c
1 /*
2  * $Source: /cvs/cvsroot/d2x/arch/dos/cdrom.c,v $
3  * $Revision: 1.3 $
4  * $Author: bradleyb $
5  * $Date: 2001-10-25 08:25:33 $
6  *
7  * DPH: This is the file where all the stub functions go.
8  * The aim is to have nothing in here, eventually
9  *
10  * $Log: not supported by cvs2svn $
11  * Revision 1.3  2001/01/31 14:04:45  bradleyb
12  * Fix compiler warnings
13  *
14  * Revision 1.2  2001/01/29 13:53:28  bradleyb
15  * Fixed build, minor fixes
16  *
17  */
18
19 #ifdef HAVE_CONFIG_H
20 #include <conf.h>
21 #endif
22
23 #include <stdio.h>
24 #include <stdlib.h>
25 #include "pstypes.h"
26 #include "error.h"
27 #include "args.h"
28
29
30 extern int Redbook_playing;
31 static int initialised = 0;
32
33 void RBAExit()
34 {
35     if (initialised) {
36         /* FIXME: Close cdrom device */
37     }
38 }
39
40 void RBAInit()
41 {
42     if (initialised) return;
43     if (FindArg("-nocdrom")) return; 
44
45     /* FIXME: Initialize cdrom device */
46
47 }
48
49 int RBAEnabled()
50 {
51  return 1;
52 }
53
54 void RBARegisterCD()
55 {
56
57 }
58
59 int RBAPlayTrack(int a)
60 {
61 return 0; 
62 }
63
64 void RBAStop()
65 {
66 }
67
68 void RBASetVolume(int a)
69 {
70
71 }
72
73 void RBAPause()
74 {
75 }
76
77 void RBAResume()
78 {
79 }
80
81 int RBAGetNumberOfTracks()
82 {
83 return 0;
84 }
85
86 int RBAPlayTracks(int tracknum,int something)
87 {
88 return -1;
89 }
90
91 int RBAGetTrackNum()
92 {
93 return -1;
94 }
95
96 int RBAPeekPlayStatus()
97 {
98  return -1;
99 }
100
101 int CD_blast_mixer()
102 {
103  return 0;
104 }