stop cd audio when exiting
authorBradley Bell <btb@icculus.org>
Sat, 15 Mar 2003 01:28:19 +0000 (01:28 +0000)
committerBradley Bell <btb@icculus.org>
Sat, 15 Mar 2003 01:28:19 +0000 (01:28 +0000)
ChangeLog
arch/sdl/rbaudio.c

index 4bef5e2..029fb53 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2003-03-14  Christopher Thielen  <chris@luethy.net>
+
+       * arch/sdl/rbaudio.c (RBAExit): stop cd audio when exiting
+
 2003-03-14  Micah J. Lieske  <MicahJon@compuserve.com>
 
        * main/gamecntl.c: add comments to the "only matt knows" cheats
index d576605..5974a29 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: rbaudio.c,v 1.3 2003-01-15 02:42:41 btb Exp $ */
+/* $Id: rbaudio.c,v 1.4 2003-03-15 01:28:19 btb Exp $ */
 /*
  *
  * SDL CD Audio functions
@@ -26,10 +26,11 @@ static int initialised = 0;
 
 void RBAExit()
 {
-  if (initialised)
-  {
-       SDL_CDClose(s_cd);
-  }
+       if (initialised)
+       {
+               SDL_CDStop(s_cd);
+               SDL_CDClose(s_cd);
+       }
 }
 
 void RBAInit()