1 /* DPH: This is the file where all the stub functions go. The aim is to have nothing in here ,eventually */
6 #include <SDL/SDL_cdrom.h>
12 static SDL_CD *s_cd = NULL;
13 extern int Redbook_playing;
14 static int initialised = 0;
26 if (initialised) return;
27 if (args_find("-nocdrom")) return;
29 if (SDL_Init(SDL_INIT_CDROM) < 0)
31 Warning("SDL library initialisation failed: %s.",SDL_GetError());
35 if (SDL_CDNumDrives() == 0)
37 Warning("No cdrom drives found!\n");
55 int RBAPlayTrack(int a)
57 if (!initialised) return -1;
59 if (CD_INDRIVE(SDL_CDStatus(s_cd)) ) {
60 SDL_CDPlayTracks(s_cd, a-1, 0, 0, 0);
68 if (!initialised) return;
72 void RBASetVolume(int a)
79 if (!initialised) return;
85 if (!initialised) return;
89 int RBAGetNumberOfTracks()
91 if (!initialised) return -1;
93 return s_cd->numtracks;
96 int RBAPlayTracks(int tracknum,int something)
98 if (!initialised) return -1;
99 if (CD_INDRIVE(SDL_CDStatus(s_cd)) ) {
100 SDL_CDPlayTracks(s_cd, tracknum-1, 0, 0, 0);
107 if (!initialised) return -1;
109 return s_cd->cur_track;
112 int RBAPeekPlayStatus()