1 /* DPH: This is the file where all the stub functions go. The aim is to have nothing in here ,eventually */
8 #include <SDL/SDL_cdrom.h>
14 static SDL_CD *s_cd = NULL;
15 extern int Redbook_playing;
16 static int initialised = 0;
28 if (initialised) return;
29 if (args_find("-nocdrom")) return;
31 if (SDL_Init(SDL_INIT_CDROM) < 0)
33 Warning("SDL library initialisation failed: %s.",SDL_GetError());
37 if (SDL_CDNumDrives() == 0)
39 Warning("No cdrom drives found!\n");
57 int RBAPlayTrack(int a)
59 if (!initialised) return -1;
61 if (CD_INDRIVE(SDL_CDStatus(s_cd)) ) {
62 SDL_CDPlayTracks(s_cd, a-1, 0, 0, 0);
70 if (!initialised) return;
74 void RBASetVolume(int a)
81 if (!initialised) return;
87 if (!initialised) return;
91 int RBAGetNumberOfTracks()
93 if (!initialised) return -1;
95 return s_cd->numtracks;
98 int RBAPlayTracks(int tracknum,int something)
100 if (!initialised) return -1;
101 if (CD_INDRIVE(SDL_CDStatus(s_cd)) ) {
102 SDL_CDPlayTracks(s_cd, tracknum-1, 0, 0, 0);
109 if (!initialised) return -1;
111 return s_cd->cur_track;
114 int RBAPeekPlayStatus()