From 210b440bd8a7040913dfb4d1b5ebf68c13b840d7 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sun, 11 Sep 2005 23:57:08 +0000 Subject: 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 6c7b5e08..1c7be5f7 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 6939e188..45ead1af 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 #include @@ -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); -- cgit v1.2.3