FinalBurn: crackling sound on netplay


#1

How to get rid of that crackling effect on the sound? It appears randomly and for dunno reasons, but online only. It involves not only nfba but even the standard FinalBurn emulator with netplay (shuffle and ehnanced) have the same issues

Putting the sound to 11025 helps a bit but it still doesn’t disappear

Any hints?


#2

I move the window a tiny bit when it happens lol Fixes it every time.

When sound is enabled in FBA, it runs a new frame only when it needs more sound and it needs 60 sound chunks per second and so it ends up running at 60 fps. Think of it like one of those old record players with a circular disk but two cursors: the write cursor and the play cursor. FBA runs frames and writes its sound chunks behind the play cursor. Play cursor is a virtual cursor that points to the current sound being played. Thats the source of the audio lag in FBA. The write cursor which leads the play cursor reads the sound chunks written by FBA and sends them to sound hardware for outputting. Sometimes when the emulation/netplay slowly falls behind, the write cursor overlaps with where FBA is filling in the sound behind the play cursor for an extended period of time resulting in that weird sound.

Need to write something to detect when that happens and then insert silence and move along.


#3

Exitting and going back to full screen fixes it for me…


#4

Cool thx, a definitive fix is welcomed though =)


#5

Well, if I switch the audio device to the onboard audio of the mainboard (normally I use sblive 5.1) the crackle is gone. Weird…