mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-23 20:51:14 +00:00
MT32: Avoid runtime abort due to non-POD object pass in MT32 Emulator.
This commit is contained in:
parent
b30e8e5f53
commit
6731eb21e3
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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() {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user