1 2 3 4 | DWORD ExpectedBytesUntilFlip = (DWORD)((SecondsLeftUntilFlip/TargetSecondsPerFrame)*(real32)ExpectedSoundBytesPerFrame); DWORD ExpectedFrameBoundaryByte = PlayCursor + ExpectedBytesUntilFlip; |
1 | DWORD ExpectedFrameBoundaryByte = PlayCursor + ExpectedSoundBytesPerFrame; |
Nimbal
This bug would have been caught by the compiler if the "unused variables" warning wasn't disabled. Just sayin'.
Rooc
Yeah ok tested it but with ExpectedBytesUntilFlip instead of the current ExpectedSoundBytesPerFrame you get audioskip so that would not work.
ChronalDragon
I was getting skips with or without the change until I increased my safety bytes from whatever/3 to whatever/2, after which point the skips went away in both cases. It might be machine dependent.
Nimbal
After some research, it seems like KMixer is the culprit.