Description
MAME will record the audio from your gameplay as a WAV audio file. This command will only write audio so you'll need to use -mngwrite to get the video too.
Example
mame <gamename> -wavwrite my_audio.wav
Command Format
<gamename> -wavwrite <file> where <file> is the file name of the audio file you want your recording done to. The example will load a game and record the audio from the gameplay as an audio file called my_video.wav. The .wav is important for Windows to recognise the file format.
MAME's Default Setting
None