Description
This option lets you set how much buffering MAME is allowed to do when playing sound. Only change these setting if you get crackling sound in games. Check first that there are no known errors and the game is running at 100% speed as both of these can affect sound.
Example
mame <gamename> -audio_latency 3
Command Format
<gamename> -audio_latency <value>. The example will set the sound latency between 3/5 and 4/5. 0 is the lowest setting and 5 is the highest.
MAME's Default Setting
2