That's a known bug in MAME (see mametesters bug 9192), and it's been fixed for the next release.
It can be worked around though. Either you can stay with PortAudio and in Windows configure an input device (such as a microphone), OR go into the default global settings, Sound, and choose something that isn't Auto or PortAudio.