depending on the system ur running, typically i notice the farther from v0.106 u get (higher versions that is) the more glitches may appear in the Old roms that ran fine on 106 and prior.
here are some sound related mame settings i came across at one point, there could be more, and some may only apply to versions above 106. note aswell, if ur not already aware, any setting that screws with game speed such as frame skipping, i would also image will screw with audio.
u can use any of the settings, frontend or not, by going to ur mame directory\ini
if theres not a file already there named something like 'popeye.ini'
just create it(use the proper name of the rom ofcourse), open it in notepad and type...
Code:
refreshspeed 1
syncrefresh 0
audio_latency 2
samplerate 44100
ini '1' and '0' is same as cmd line '-refreshspeed' '-norefreshspeed' just for example
default audio latency i believe is 1... but 2/3 may work well depending on ur system
default samplerate is probably 48000 or 44100 so choose a desired frequency under that tier
Code:
-[no]refreshspeed / -[no]rs
Allows MAME to dynamically adjust the gameplay speed such that it does
not exceed the slowest refresh rate for any targeted monitors in your
system. Thus, if you have a 60Hz monitor and run a game that is
actually designed to run at 60.6Hz, MAME will dynamically change the
speed down to 99% in order to prevent sound hiccups or other
undesirable side effects of running at a slower refresh rate. The
default is OFF (-norefreshspeed).
-[no]syncrefresh
Enables speed throttling only to the refresh of your monitor. This
means that the game's actual refresh rate is ignored; however, the
sound code still attempts to keep up with the game's original refresh
rate, so you may encounter sound problems. This option is intended
mainly for those who have tweaked their video card's settings to
provide carefully matched refresh rate options. Note that this option
does not work with -video gdi mode.The default is OFF (-nosyncrefresh).
-audio_latency
1 - 4
-samplerate / -sr
11025 Hz
22050 Hz
44100 Hz
8000 Hz
16000 Hz
32000 Hz
48000 Hz