return;
else if(wasPlaying)
{
- CDAudio_Resume(); // needed by SDL - can't stop while paused there
+ CDAudio_Resume(); // needed by SDL - can't stop while paused there (causing pause/stop to fail after play, pause, stop, play otherwise)
if (cdPlaying && (CDAudio_SysStop() == -1))
return;
}
int ret;
int n;
- command = (Cmd_Argc() >= 2) ? Cmd_Argv (1) : "";
+ command = Cmd_Argv (1);
if (strcasecmp(command, "remap") != 0)
Host_StartVideo();
if (strcasecmp(command, "rescan") == 0)
{
- CDAudio_Stop();
CDAudio_Shutdown();
CDAudio_Startup();
return;
if (strcasecmp(command, "eject") == 0)
{
- if (cdPlaying && faketrack == -1)
+ if (faketrack == -1)
CDAudio_Stop();
CDAudio_Eject();
cdValid = false;
Con_Printf("CD commands:\n");
Con_Printf("cd on - enables CD audio system\n");
Con_Printf("cd off - stops and disables CD audio system\n");
- Con_Printf("cd reset - resets CD audio system (clears track remapping and re-reads disc information)");
+ Con_Printf("cd reset - resets CD audio system (clears track remapping and re-reads disc information)\n");
+ Con_Printf("cd rescan - rescans disks in drives (to use another disc)\n");
Con_Printf("cd remap <remap1> [remap2] [remap3] [...] - chooses (possibly emulated) CD tracks to play when a map asks for a particular track, this has many uses\n");
Con_Printf("cd close - closes CD tray\n");
Con_Printf("cd eject - stops playing music and opens CD tray to allow you to change disc\n");