libretro / desmume

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

Microphone is always on #25

Closed SilentHeII closed 6 years ago

SilentHeII commented 6 years ago

I've been trying to play through the DS port of Resident Evil 1 on Rebirth Mode. The touch controls can be emulated rather comfortably, however there is a section that requires you to perform mouth-to-mouth to Richard via blowing into the microphone. Now, this wouldn't be an issue, however there is no way to disable the microphone. I've tried disabling it in the quick menu options, and even tried the toggle hotkey. The only noticeable change is that instead of turning off, the toggle simply switches between internal and random sound samples.

0314 - resident evil - deadly silence usa -180321-210416

bearoso commented 6 years ago

Make sure force microphone enable is off (that option needs to be removed). Then you hit the microphone key when you need it to make noise (there's no physical microphone support). It seems to work fine for me.

bearoso commented 6 years ago

I've removed the force enable microphone option, since it doesn't make sense without physical microphone support, and reworded the options to make more sense of what they can actually do.

SilentHeII commented 6 years ago

I understand that. However, the option IS disabled AND my laptop microphone as well.

bearoso commented 6 years ago

Can you provide a save state just before that location and the CRC32 of the ROM image you're using? If so, I'll try to reproduce it.

SilentHeII commented 6 years ago

I have this savestate for just before the sequence shows up. https://my.mixtape.moe/bwktir.state1 CRC32: DE3E278C

ghost commented 6 years ago

I don't own Resident Evil for DS per se but I just want to give my comment on the situation since I own a couple of games with Microphone support.

Zelda Phantom Hourglass seems to be using Microphone all the time despite me pressing the Microphone button, the bars are always filled to the top and dosen't go down.

Zelda Spirit Tracks I'm not sure of, have to look again.

But on Mario and Luigi - Bowser's Inside Story the bars is normal, low and the Microphone button works as normal and when pressed the bars is rising to show that the Microphone is working.

bearoso commented 6 years ago

Ok, apparently the DS doesn't use 0 as flat in its mic interpretation. It's 8-bit, so you'd presume that or 0x80, but both those are interpreted as noise. I tried 0x40, which seems to work with Resident Evil and let me get past the part SilentHell was stuck at, so I committed that. I don't know, maybe the mic level is actually 7-bit. I remember reading somewhere that the hardware actually interpolates 1-bit. If it breaks something else, reopen.

ghost commented 6 years ago

@bearoso

Seems to work perfectly now with all the games I have that have microphone support.

Zelda Phantom Hourglass, the bars is normal and functions just like Mario and Luigi - Bowser's Inside Story now.

Zelda Spirit Tracks is the most perfect example, the bars is normal and with a gentle touch of the microphone button the bars is gently rising and with a hard press it goes straight to the top.

Good work mate!