#include "quakedef.h"
#include "cdaudio.h"
+
+#if SDL_MAJOR_VERSION == 1 && SDL_MINOR_VERSION == 2
+// SDL 1.2 has CD audio
+
#include <SDL.h>
#include <time.h>
int CDAudio_SysPlay (int track)
{
- return SDL_CDPlayTracks(cd, track, 0, 1, 0);
+ return SDL_CDPlayTracks(cd, track-1, 0, 1, 0);
}
int CDAudio_SysStop (void)
+#else
+// SDL 1.3 does not have CD audio
+
+void CDAudio_SysEject (void)
+{
+}
+
+
+void CDAudio_SysCloseDoor (void)
+{
+}
+
+
+int CDAudio_SysGetAudioDiskInfo (void)
+{
+ return -1;
+}
+
+
+float CDAudio_SysGetVolume (void)
+{
+ return -1.0f;
+}
+
+
+void CDAudio_SysSetVolume (float volume)
+{
+}
+
+
+int CDAudio_SysPlay (int track)
+{
+ return -1;
+}
+
+
+int CDAudio_SysStop (void)
+{
+ return -1;
+}
+
+
+int CDAudio_SysPause (void)
+{
+ return -1;
+}
+
+int CDAudio_SysResume (void)
+{
+ return -1;
+}
+
+int CDAudio_SysUpdate (void)
+{
+ return -1;
+}
+
+
+void CDAudio_SysInit (void)
+{
+}
+
+int CDAudio_SysStartup (void)
+{
+ return -1;
+}
+
+void CDAudio_SysShutdown (void)
+{
+}
+#endif
+