notaz / picodrive

Fast MegaDrive/MegaCD/32X emulator
Other
304 stars 173 forks source link

CDA Issue in Doom 32XCD #164

Open PimpUigi opened 2 weeks ago

PimpUigi commented 2 weeks ago

When I switch to CDA in Doom with a correct .cue sheet, it starts the music no problem, plays the correct track, correctly doesn't restart the track if I die, but when I end the level or decide to load another level, CDA goes silent and can't be restarted via switching back to FM and then to CDA.

I checked in Ares and it switches tracks no problem when I end the level, or load another level. But Ares' CDA goes silent if I die. xD

This was a problem in both standalone PicoDrive and RetroArch.

irixxxx commented 2 weeks ago

Which version have you used? The git commit hash would be the information I'm looking for.

PimpUigi commented 2 weeks ago

Oh, good question! I had just gone into the Actions --> Artifacts and grabbed the most recent Win32 one last night, 071a9e5904982c33fa5ec1ea7ae2a5d597fa891a says it was built 3 Weeks Ago.

Similar for the Libretro core which had at the time said "19 hours ago".

irixxxx commented 2 weeks ago

If you have compile capabilities, please check again with my latest master.

PimpUigi commented 2 weeks ago

Is that still this one? https://github.com/notaz/picodrive/commit/071a9e5904982c33fa5ec1ea7ae2a5d597fa891a Or am I missing something? ^^;

irixxxx commented 2 weeks ago

https://github.com/irixxxx/picodrive/actions/runs/12917906637

PimpUigi commented 2 weeks ago

Both MK2 and Doom seem to be playing their music properly. I have a couple other quirky errors I've come across in Doom since though...

  1. Ares seems to remember my in game options and also created a .ram file with the game's name. This is definitely making testing back and forth easier as I don't have to constantly re-enable CDA or my controls etc. - I didn't realize this was a feature of the game because I'm used to 32X Doom not saving settings.

  2. When I'm backing out to the WAD selection menu after enabling CDA, and then I select Doom again, I get a loud crackle and then this screen: Image

Steps to repro,

  1. Start a game in Doom at any level
  2. Enable CDA
  3. Options Menu --> Quit --> Yes
  4. Select Doom --> ack

Confirmed this doesn't happen with Ares.

irixxxx commented 2 weeks ago

which ares version are you using btw? Mine doesn't support megasd at all?

PimpUigi commented 2 weeks ago

Looks like...Ares v141. MK2 doesn't work on it, but I saw in the Doom CD 32X thread that Ares would run it. It loads the .32x file first, then instantly asks you to load the .cue file.

Long view, I intend to run stuff with my own Shaders. So Ares ain't gonna cut it, and PicoDrive has always done right by me in games like Web of Fire, Blackthorne and Star Wars Arcade. : )

irixxxx commented 2 weeks ago

That's strange. I compiled a fresh version from their repo, and it doesn't do that. I also can't find any source code relating to megasd in it.

PimpUigi commented 2 weeks ago

Yeah I just followed the very rough instructions here: https://www.doomworld.com/forum/topic/148783-doom-cd32x-fusion/ I get the feeling that it doesn't work with other megasd stuff, like MK2 should have been much simpler to run I feel yet it definitely doesn't budge.

irixxxx commented 2 weeks ago

I think it's not using the megasd at all. D32XF is basically a 32X mode 1 CD game which can use an additional megasd if it is available. When running under Ares it is probably using the Mega CD audio instead of MD+.

irixxxx commented 2 weeks ago

Your issues regarding cartrdige sram in MSU/MD+ should be solved in my master.

irixxxx commented 1 week ago

I fixed the "map 5" issue in ed5b27c and the cartridge SRAM for MSU/MD+/mode 1 in b931204. @notaz you can close this.

irixxxx commented 1 week ago

@PimpUigi, BTW there's a bug in DCD32XF. If audio is enabled, on the title screen it tries to start playing track 1 through MD+ if a MegaSD is found. Track 1 is the ISO track, though.