   mcisendstring (sound) lag
  edit: ok, seems i've solved it. I'll leave it here, maybe someone is facing the same problem.Hello.I've been googling about it, but didnt find anything, not even any trace of anyone having similar problem...I've decided to use mcisendstring for making sound effects for my game, as it was really easy. It works perfectly on one computer (with windows xp), but on the other (with vista) there is 1-2 seconds lag before playing any of the sounds, each time i play them (both short sounds, and long background music). The code used is the same on both machines, and there is nothing extraordinary about it. Since those files are read once during the startup, it can't possible be any kind of buffering problem. Anyone got some tips what should i look for? Is this vista's fault? Maybe some codecs are to be blamed? I yet have to ask one of my friends to see if he'll have the same problem on his vista. Any tip as to what could be wrong might prove useful. Thakns.EDIT: I've come across some information that disabling sound enchancement properties in windows control panel might work for sound lag, but tried it, and it didn't. Also, i'm not having any lags on this vista computer in any other game or application...EDIT: Solution: It appears it's indeed codec's fault. I tried different file formats, and all other formats work without lag, also after installing newer codec pack, lag is smaller. It appears that my sound files were encoded using some old/outdated/poor quality codecs, and by luck, on one computer they work fine with one set of decoders, on the other one they don't.[Edited by - nef123 on April 28, 2009 4:41:32 AM]