TASEmulators / desmume

DeSmuME is a Nintendo DS emulator
http://desmume.org
GNU General Public License v2.0
2.98k stars 545 forks source link

No Audio when Ensata Emulation Enabled #850

Open dlbuhtig4096 opened 6 days ago

dlbuhtig4096 commented 6 days ago

State your operating system:

Windows11

DesMuME version

nightly

Issue

Games output no audio when ensata emulation is enabled. Once ensata is disabled, audio works again.

I am not sure if links are allowed here, as they are related to the Nintendo leak occurred in 2020 and GameFreak leak happening recently.

zeromus commented 5 days ago

don't hold your breath for this to get fixed. The ensata protocol could be doing a million things. You guys with whatever test case you have need to go figure that stuff out on your own.

dlbuhtig4096 commented 5 days ago

I was just reporting it first.

Ensata has a debug register 0x04fff200 that is not emulated by DeSmuMe currently, which seems to be the option to enable and disable sound. When Ensata emulation is enabled, the game writes 0x10 to 0x04fff200 and get 32 bits response from it. If it returns zero, then all sound would be disabled.

So here's the quick fix to this:

I am not pretty sure if the register would be used for other purpose, but I haven't seen any other access than audio control so far.

zeromus commented 5 days ago

great work. you're on track. do it on a fork and test it and send a PR

dlbuhtig4096 commented 5 days ago

Just tested and it should work. Please check #851 and merge.