foxygit / doom Log in
commit 4abf58cf86c28893a3ba30fae38a7825267aa061
Author:     Alex Mayfield <alexmax2742@gmail.com>
AuthorDate: Wed Mar 8 22:45:41 2017 -0500
Commit:     Alex Mayfield <alexmax2742@gmail.com>
CommitDate: Wed Mar 8 22:45:41 2017 -0500

    Remove debugging bits
---
 midiproc/main.c  | 12 ------------
 src/i_midipipe.c |  2 +-
 2 files changed, 1 insertion(+), 13 deletions(-)

diff --git a/midiproc/main.c b/midiproc/main.c
index 983ee23c..436f06df 100644
--- a/midiproc/main.c
+++ b/midiproc/main.c
@@ -98,16 +98,11 @@ static void ShutdownSDL(void)

 static boolean RegisterSong(const char *filename)
 {
-    fprintf(stderr, "%s %s\n", __FUNCTION__, filename);
-
     UnregisterSong();
     music = Mix_LoadMUS(filename);
-    fprintf(stderr, "<-- %p\n", music);

     if (music == NULL)
     {
-        fprintf(stderr, "Error loading midi: %s\n", Mix_GetError());
-
         return false;
     }

@@ -116,16 +111,11 @@ static boolean RegisterSong(const char *filename)

 static void SetVolume(int vol)
 {
-    fprintf(stderr, "%s %d\n", __FUNCTION__, vol);
-
     Mix_VolumeMusic(vol);
 }

 static void PlaySong(int loops)
 {
-    fprintf(stderr, "%s %d\n", __FUNCTION__, loops);
-    fprintf(stderr, "%s %d\n", "Playing at volume", Mix_VolumeMusic(-1));
-
     Mix_PlayMusic(music, loops);

     // [AM] BUG: In my testing, setting the volume of a MIDI track while there
@@ -141,8 +131,6 @@ static void PlaySong(int loops)

 static void StopSong()
 {
-    fprintf(stderr, "%s\n", __FUNCTION__);
-
     Mix_HaltMusic();
 }

diff --git a/src/i_midipipe.c b/src/i_midipipe.c
index bf38c22a..7ea003be 100644
--- a/src/i_midipipe.c
+++ b/src/i_midipipe.c
@@ -436,7 +436,7 @@ boolean I_MidiPipe_InitServer()
     startup_info.dwFlags = STARTF_USESTDHANDLES;

     BOOL ok = CreateProcess(TEXT(module), TEXT(cmdline), NULL, NULL, TRUE,
-        CREATE_NEW_CONSOLE, NULL, NULL, &startup_info, &proc_info);
+        0, NULL, NULL, &startup_info, &proc_info);

     if (!ok)
     {