Main > Main Forum
Help me fix my Mame audio latency! :)
GaryMcT:
Is anyone here able to set audio_latency to 1 in Mame without vsync and get a completely smooth experience with the AC97 audio chipset? I mention without vsync so that the issue doesn't get polluted with problems with monitor refresh rates not matching game refresh rate, etc. I can only get down to audio_latency 2 and avoid issues, but the latency is pretty noticeable to me.
On a related note, if you are able to get down to audio_latency 1 without any audio glitches, please let me know what soundcard you are using. I may have to invest in a sound card if there is one that can consistently make this better.
Thanks!
Gary
Ummon:
I've always had the latency at '1' on this rig - '05 Asus board running a P4 2.8 and XP - whether using the onboard for the last two years, or recently on an old SB live 5.1 card I put in. If you have to go that route, these cards are like ten bucks on ebay.
GaryMcT:
Awesome! I'll give an SB Live a try and see how that works. I may even have one of those around here already somewhere.
GaryMcT:
Tried an SB Live of some sort. With auto_latency set to 1, I'm more likely to get overflows instead of underflows. What do you get if you run mspacmnf with no vsync, and -verbose? After a shortish games, I get:
Sound: buffer overflows=12 underflows=2
which means that Mame is more often than not writing too fast to the audio buffer when it messed up.
Ideas?
protokatie:
I may be wrong, but when you run MAME with no Vsync you will run into audio problems (even if not noticed) regardless of what hardware and settings you use. Actually, if you run a game at a refresh rate any different from the game's intended refresh you should encounter some audio mismatches. Most arcade systems (like earlier consoles) had the gfx refresh and audio timing closely matched, so any deviation of this will cause you the potential headache you are seeing.
Best bet is to run MAME using Vsync and have your monitor set to the same refresh rate (or have mame do no skip frames) as the game. I may have missed the point you are trying to get at tho, but I see no reason to run a game using "no vsync" unless you need to squeeze a few more FPS out of it.