AUDIO: Added dump-midi mechanism
This mechanism is enabled by '--dump-midi' command line parameter. The midi events are printed to screen, and dumped to 'dump.mid' file.
This commit is contained in:
parent
1fb3d61b56
commit
3b4810aab4
22 changed files with 243 additions and 23 deletions
|
@ -449,6 +449,12 @@ extern "C" int scummvm_main(int argc, const char * const argv[]) {
|
|||
return res.getCode();
|
||||
}
|
||||
|
||||
if (settings.contains("dump-midi")) {
|
||||
// Store this command line setting in ConfMan, since all transient settings are destroyed
|
||||
ConfMan.registerDefault("dump_midi", true);
|
||||
}
|
||||
|
||||
|
||||
// Init the backend. Must take place after all config data (including
|
||||
// the command line params) was read.
|
||||
system.initBackend();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue