[chocolate-doom] 12/13: Remove temporary MIDI files generated by sound code.

Jonathan Dowland jmtd at moszumanska.debian.org
Mon Jan 30 15:06:33 UTC 2017


This is an automated email from the git hooks/post-receive script.

jmtd pushed a commit to annotated tag chocolate-doom-0.0.2
in repository chocolate-doom.

commit 210b440bd8a7040913dfb4d1b5ebf68c13b840d7
Author: Simon Howard <fraggle at gmail.com>
Date:   Sun Sep 11 23:57:08 2005 +0000

    Remove temporary MIDI files generated by sound code.
    
    Subversion-branch: /trunk/chocolate-doom
    Subversion-revision: 102
---
 NEWS          |  1 +
 src/i_sound.c | 11 +++++++++--
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/NEWS b/NEWS
index 6c7b5e0..1c7be5f 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,5 @@
 
+    Remove temporary MIDI files generated by sound code.
     Fix sound not playing at the right volume
     Allow alt-tab away while running in fullscreen under Windows
     Add second configuration file (chocolate-doom.cfg) to allow 
diff --git a/src/i_sound.c b/src/i_sound.c
index 6939e18..45ead1a 100644
--- a/src/i_sound.c
+++ b/src/i_sound.c
@@ -1,7 +1,7 @@
 // Emacs style mode select   -*- C++ -*- 
 //-----------------------------------------------------------------------------
 //
-// $Id: i_sound.c 101 2005-09-11 20:53:17Z fraggle $
+// $Id: i_sound.c 102 2005-09-11 23:57:08Z fraggle $
 //
 // Copyright(C) 1993-1996 Id Software, Inc.
 // Copyright(C) 2005 Simon Howard
@@ -22,6 +22,9 @@
 // 02111-1307, USA.
 //
 // $Log$
+// Revision 1.19  2005/09/11 23:57:08  fraggle
+// Remove temporary MIDI files generated by sound code.
+//
 // Revision 1.18  2005/09/11 20:53:17  fraggle
 // Fix sounds playing at the wrong volume (too quiet)
 //
@@ -90,7 +93,7 @@
 //-----------------------------------------------------------------------------
 
 static const char
-rcsid[] = "$Id: i_sound.c 101 2005-09-11 20:53:17Z fraggle $";
+rcsid[] = "$Id: i_sound.c 102 2005-09-11 23:57:08Z fraggle $";
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -605,6 +608,10 @@ void *I_RegisterSong(void *data, int len)
 
             fprintf(stderr, "Error loading midi\n");
         }
+
+        // remove file now
+
+        remove(filename);
     }
 
     Z_Free(mididata);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/chocolate-doom.git



More information about the Pkg-games-commits mailing list