flycast icon indicating copy to clipboard operation
flycast copied to clipboard

Ms. Pac-Man Maze Madness no music audio when entering the first portal of the first level.

Open BParks21 opened this issue 3 years ago • 7 comments

Windows 11, 8086K, GTX 1080ti

When entering the first portal of the first level the music cuts out and stops playing. Not supposed to happen. Running the NTSC version of the game. Confirmed clean dump, tested in bin/cue format and chd format.

BParks21 avatar Oct 19 '22 17:10 BParks21

Known issue. You can pause and resume the game to work around it.

flyinghead avatar Oct 19 '22 17:10 flyinghead

Oh ok will test that thanks.

BParks21 avatar Oct 19 '22 17:10 BParks21

I found that many games are GD_PAUSE with SPI_CD_PLAY command. It works fine if I change the code like this.

gdromv3.cpp

void libCore_CDDA_Sector(s16* sector)
{
	//silence ! :p
	if (cdda.status == cdda_t::Playing)
	{
	            SecNumber.Status = GD_PLAY;
	            libGDR_ReadSector((u8*)sector,cdda.CurrAddr.FAD,1,2352);
case SPI_CD_PLAY:
		{
			...
                        cdda.status = cdda_t::Playing;
                       //SecNumber.Status = GD_PLAY;
                       SecNumber.Status = GD_PAUSE;

kihato avatar Mar 17 '24 16:03 kihato

Unfortunately, the above code seems to be incorrect as a bug was found in some games (Bust-A-Move 4).

kihato avatar Mar 18 '24 21:03 kihato

It does fix Ms. Pac-Man though, so that's a good hint at what the problem could be.

flyinghead avatar Mar 18 '24 21:03 flyinghead

I checked on real hardware and Status=GD_PLAY is set immediately when a CD_PLAY command is issued. So it's probably not the right fix.

flyinghead avatar Mar 20 '24 11:03 flyinghead