shithub: choc

Download patch

ref: 4abf58cf86c28893a3ba30fae38a7825267aa061
parent: 668d03699c8fd729c728fc2e7a6b8e21e7a815d1
author: Alex Mayfield <alexmax2742@gmail.com>
date: Wed Mar 8 17:45:41 EST 2017

Remove debugging bits

--- a/midiproc/main.c
+++ b/midiproc/main.c
@@ -98,16 +98,11 @@
 
 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 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 StopSong()
 {
-    fprintf(stderr, "%s\n", __FUNCTION__);
-
     Mix_HaltMusic();
 }
 
--- a/src/i_midipipe.c
+++ b/src/i_midipipe.c
@@ -436,7 +436,7 @@
     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)
     {