Opened 17 months ago

Last modified 9 months ago

#14527 closed patch

Midi dump feature not working — at Version 2

Reported by: fabianostermann Owned by:
Priority: low Component: Audio
Version: Keywords: MidiDriver Midi Dump Feature
Cc: fabianostermann Game: Monkey Island 2

Description (last modified by fabianostermann)

Hi all,

has anyone ever used the --midi-dump feature, that is build in since commit 3b4810a to the MidiDriver from audio/mididrv.h+cpp?

I tested it with stable version 2.7.0, an up-to-date build from source and checked out the code to the state of the former commit 3b4810a in order to detect if it is an error that has occured while improving on the engine or if the error maybe is due to my setup.

Alle three attempts failed leading to no file dump.mid was generated.
When I forced a midi file to be written by code change, it gave me a midi file with header only. So, midi events are never recorded (proved it with debug prints) and the dump cache remains empty.

I tested on my version of monkey1 and monkey2.
Monkey2 directory has following files:

ADLIB.IMS MONKEY2.001 ROL_330.IMS ROL_334.IMS ROLAND.IMS SPEAKER.IMS
MONKEY2.000 MONKEY2.EXE ROL_332.IMS ROL_336.IMS SOUNBLAS.IMS

It's the same if I use only the two main game files MONKEY2.000+1. Music is present when run with the engine.

Can anyone help to find the problem? Is it maybe the version of my game, that is not capable?

I am trying to analyse the iMuse engine for academic research, so having the ability to dump midis and, in the best case, redirect events directly from source code to other programs would really help me.
Rebuilding the iMuse engine in python would be the next thing I would check, if this approach with ScummVM does not work. So if anyone has ideas here, that would also be super helpful for me.

I would appreciate it a lot if someone can provide me any hint of where to look next. Thanks in advance!

(And many thanks for all the work anyone has spend on ScummVM. I use it for playing my favorite adventure for over 15 years now. :-D )

--- Added later:

I got a trace. It seems to have something to do with alsa under linux.
I got it to work by changing the driver settings in the GUI.
Since I need command line startup, I will investigate that further by testing out some config files and report my solution by tommorow.

Change History (2)

comment:1 by fabianostermann, 17 months ago

Description: modified (diff)

comment:2 by fabianostermann, 17 months ago

Description: modified (diff)
Priority: normallow
Note: See TracTickets for help on using tickets.