Member Avatar for vs49688

I recently found an old game in which the soundtrack is read from an audio cd. I would like to redirect this via a proxy dll (winmm.dll) to read the soundtrack from certain mp3 files, possibly via FMODEx. So far I have been unsuccessful in every attempt.
The game calls mciSendCommandA() to request the specified audio track from the disc.

I have tried hooking this function, but I was unable to make sense of any of the messages being sent. Unfortunately it is not using mciSendStringA(), so I can't just modify the string.

Is there another (possibly simpler) way to do this? Or am I biting off more than I can chew?

What exactly are you receiving? The function itself can be found here which also provides a link to the command messages.

You shouldn't be receiving garbage, but one of those commands. If you're not receiving one of those commands then I'm not sure what else you can do.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.