View Single Post
ArnimS's Avatar
Posts: 1,107 | Thanked: 720 times | Joined on Mar 2007 @ Germany
#68
Originally Posted by ukki View Post
Maybe it's the lower MixRate, try setting MixRate = 44100 in the config and see if that helps. If it does, I'll change it in the package and update.
If a game uses a sound buffer of N samples, and plays back with frequency M Hertz, then the sound delay D in seconds will be given by
D = N / M. So if the game doesn't scale buffersize by the mixer frequency (and looking at the code, i don't think it does), halving the MixRate will double the sound delay. I expect that changing this

multivc.h:#define MixBufferSize 256

to something liike

multivc.h:#define MixBufferSize (int)(256 * MixRate / 44100)

would solve the problem.

Last edited by ArnimS; 2008-03-04 at 09:04.