mt32emu_create_context() expects a report-handler interface value, not a
casted NULL pointer.
Initialize an empty handler object and pass that to the mt32emu API.
}
const char *s = mt32emu_get_library_version_string();
write_log("mt32emu version: %s\n", s);
- mt32context = mt32emu_create_context((mt32emu_report_handler_i)NULL, NULL);
+ mt32emu_report_handler_i report_handler = { NULL };
+ mt32context = mt32emu_create_context(report_handler, NULL);
if (!mt32context) {
write_log("mt32emu_create_context() failed\n");
return 0;