Well, you probably COULD do it. It would probably be a pain in the ass to locate the required calls though. It would also be different for each game I'd imagine since each game uses a different sound engine. Some games would be similar (Bonk/Air Zonk/Hudson crap), I'd bet.
I know with Squirrel at least, you could set a game up to trigger CD calls instead of card calls and have it start launching CD music at you.
EDIT: You'd also need to have the CD-ROM bios jammed into the hacked ROM somehow so that the things required to make the calls are there. This makes things considerably more pain in the ass.
Charles Macdonald did some of his own CD routines that were outside the BIOS card. He wrote them himself. The byte string you feed the CD port is very scsi-ish and is already known (emulator authors have to emulate this, so it's known). There's also the Game Express card, in which they wrote all their own routines. That's only 32k, IIRC. Probably much less than that, if you just wanted to extract just the CDDA handle code/bios calls.
Would it be possible to hack a HuCARD game so that whenever chip music should begin, the game instead plays a specified track from the CD drive instead?
So, for example, you could have the OutRun arcade soundtrack in the CD drive and have the game play those tracks instead of the chip music?
I had the idea while watching this: - although I adore the PCE music, this is also a fantastic arrangement and It would be amazing to be able to play the PCE to these tracks.
Trapping the music routine to spy and see what song is being requested, is probably the easier thing to do. I've done this with Megman, Castlevania, Air Zonk and a few others. Matter of fact, if there's an HES file of the rom, then you can very easily see where the song track numbers are setup and hack from there - because of how only the music play is ripped and only a limited amount of ram is used for it, then trace this in the original rom. You just need to hook a piece of code that gets called first, on track select/play or command, that spies the track request. If the track request is a song (usually from a specific range of values of that byte), then you jump to an alt set of code that executes CDDA routines. Of course, that's where it gets more complicated. And yeah, it's game dependent.