MAMEWorld >> EmuChat
View all threads Index   Flat Mode Flat  

Big Karnak
Part-time Lurker
Reged: 05/22/13
Posts: 1011
Loc: Mount St. Lurkling
Send PM
Re: Audio Latency
06/18/14 06:01 AM


Oh geez, maybe the Audio Latency should be kept at "2" after I just read the following from this thread: http://forum.arcadecontrols.com/index.ph...8el3#msg1342036

Quote:


Well the purpose is to run the emulator with zero "Sound: buffer over- / underflows", which is reported on exit after an emulation session when you run MAME/MESS with the "-v" parameter.

Note that each time a sound buffer overflow occurs that the audio samples generated in that frame are skipped into oblivion = audio lost. You can check this by looking at the code in src/osd/windows/sound.c, and search for "// if we're going to overlap the play position, just skip this chunk".

I'm a perfectionist (and I know you are too ), so my test case is *not* only whether or not I can hear a skip, but also whether or not the emulation has actually skipped on audio. Which it does in the case of buffer overruns.

In my experience there a lot of drivers where in an average 5 or 10 minute gaming session the number of buffer overruns will increase when setting the audio latency setting to 1, but the number of overruns will be ~zero when having a setting of 2. When this is the case, being able to set a value somewhere in between might be desirable.

I guess your best test case is to run a game or system you know very well, run MESS/MAME with the "-v" parameter and have audio latency set to 1 and do a gaming session of a few minutes, report the number of buffer overruns (= how many frames of audio have been lost). I would be surprised if that number will be zero... Then do the testcase with audio_latency setting of 2 and see how much -lower- the number of buffer overruns have been. It's probably close to zero. (It might also be worthwhile to do the same for a game / system that taxes your system more than average.)

-If- the above is the case, then I guess you would also benefit of having a higher granularity for the audio latency setting.









Entire thread
Subject Posted by Posted on
* Audio Latency Big Karnak 06/17/14 08:15 AM
. * Re: Audio Latency SmitdoggAdministrator  06/17/14 09:17 AM
. * Re: Audio Latency big10p  06/17/14 01:03 PM
. * Re: Audio Latency Mamesick  06/17/14 01:21 PM
. * Re: Audio Latency big10p  06/17/14 01:34 PM
. * Re: Audio Latency Mamesick  06/17/14 01:38 PM
. * Re: Audio Latency Big Karnak  06/17/14 03:01 PM
. * Re: Audio Latency Sune  06/17/14 08:14 PM
. * Re: Audio Latency Big Karnak  06/18/14 06:01 AM
. * Re: Audio Latency krick  06/18/14 05:11 AM
. * Re: Audio Latency R. Belmont  06/18/14 05:33 PM
. * Re: Audio Latency krick  06/19/14 05:04 AM
. * Re: Audio Latency Mamesick  06/17/14 04:59 PM
. * Re: Audio Latency Big Karnak  06/18/14 05:36 AM
. * Re: Audio Latency big10p  06/17/14 03:27 PM

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 255 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 4856