mirror of
https://github.com/VARCem/munt.git
synced 2026-07-08 18:16:13 +00:00
mt32emu patch for DOSBox:
- Improved implementation of MT32ReportHandler::printDebug() to be more efficient yet to avoid compiler warning "format not a string literal and no format arguments"
This commit is contained in:
@@ -1,9 +1,3 @@
|
||||
commit f060df708f8395f61b2cf03f8679f61ee78a6a49
|
||||
Author: sergm <sergm@bigmir.net>
|
||||
Date: Mon Dec 8 10:26:19 2014 +0200
|
||||
|
||||
mt32emu patch
|
||||
|
||||
diff --git a/src/Makefile.am b/src/Makefile.am
|
||||
index 184469e..286638d 100644
|
||||
--- a/src/Makefile.am
|
||||
@@ -65,10 +59,10 @@ index 61d15e5..0ec8ebc 100644
|
||||
Bitu cmd_len;
|
||||
diff --git a/src/gui/midi_mt32.cpp b/src/gui/midi_mt32.cpp
|
||||
new file mode 100644
|
||||
index 0000000..eb8bf8f
|
||||
index 0000000..25a30d1
|
||||
--- /dev/null
|
||||
+++ b/src/gui/midi_mt32.cpp
|
||||
@@ -0,0 +1,265 @@
|
||||
@@ -0,0 +1,264 @@
|
||||
+#include <SDL_thread.h>
|
||||
+#include <SDL_endian.h>
|
||||
+#include "control.h"
|
||||
@@ -329,9 +323,8 @@ index 0000000..eb8bf8f
|
||||
+ MidiHandler_mt32 &midiHandler_mt32 = MidiHandler_mt32::GetInstance();
|
||||
+ if (midiHandler_mt32.noise) {
|
||||
+ char s[1024];
|
||||
+ strcpy(s, "MT32: ");
|
||||
+ vsnprintf(s + 6, 1017, fmt, list);
|
||||
+ LOG_MSG(s);
|
||||
+ vsnprintf(s, 1023, fmt, list);
|
||||
+ LOG_MSG("MT32: %s", s);
|
||||
+ }
|
||||
+}
|
||||
diff --git a/src/gui/midi_mt32.h b/src/gui/midi_mt32.h
|
||||
|
||||
@@ -57,10 +57,10 @@ index 57181e0..3bc943b 100644
|
||||
void MIDI_RawOutByte(Bit8u data) {
|
||||
diff --git a/src/gui/midi_mt32.cpp b/src/gui/midi_mt32.cpp
|
||||
new file mode 100644
|
||||
index 0000000..eb8bf8f
|
||||
index 0000000..25a30d1
|
||||
--- /dev/null
|
||||
+++ b/src/gui/midi_mt32.cpp
|
||||
@@ -0,0 +1,265 @@
|
||||
@@ -0,0 +1,264 @@
|
||||
+#include <SDL_thread.h>
|
||||
+#include <SDL_endian.h>
|
||||
+#include "control.h"
|
||||
@@ -321,9 +321,8 @@ index 0000000..eb8bf8f
|
||||
+ MidiHandler_mt32 &midiHandler_mt32 = MidiHandler_mt32::GetInstance();
|
||||
+ if (midiHandler_mt32.noise) {
|
||||
+ char s[1024];
|
||||
+ strcpy(s, "MT32: ");
|
||||
+ vsnprintf(s + 6, 1017, fmt, list);
|
||||
+ LOG_MSG(s);
|
||||
+ vsnprintf(s, 1023, fmt, list);
|
||||
+ LOG_MSG("MT32: %s", s);
|
||||
+ }
|
||||
+}
|
||||
diff --git a/src/gui/midi_mt32.h b/src/gui/midi_mt32.h
|
||||
|
||||
Reference in New Issue
Block a user