MT32: Avoid runtime abort due to non-POD object pass in MT32 Emulator.

This commit is contained in:
D G Turner 2014-07-10 23:11:20 +01:00
parent b30e8e5f53
commit 6731eb21e3
2 changed files with 2 additions and 16 deletions

View File

@ -15,11 +15,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
//#include <cerrno>
//#include <cmath>
//#include <cstdlib>
//#include <cstring>
#include "mt32emu.h"
#include "mmath.h"
#include "PartialManager.h"
@ -99,11 +94,6 @@ void ReportHandler::showLCDMessage(const char *data) {
debug("\n");
}
void ReportHandler::printDebug(const char *fmt, va_list list) {
debug(fmt, list);
debug("\n");
}
void Synth::polyStateChanged(int partNum) {
reportHandler->onPolyStateChanged(partNum);
}
@ -116,9 +106,9 @@ void Synth::printDebug(const char *fmt, ...) {
va_list ap;
va_start(ap, fmt);
#if MT32EMU_DEBUG_SAMPLESTAMPS > 0
reportHandler->printDebug("[%u] ", renderedSampleCount);
debug("[%u] ", renderedSampleCount);
#endif
reportHandler->printDebug(fmt, ap);
debug(fmt, ap);
va_end(ap);
}

View File

@ -236,10 +236,6 @@ public:
virtual ~ReportHandler() {}
protected:
// Callback for debug messages, in vprintf() format
virtual void printDebug(const char *fmt, va_list list);
// Callbacks for reporting various errors and information
virtual void onErrorControlROM() {}
virtual void onErrorPCMROM() {}