Latency fix

This branch will control the interpolation to reduce the latency as much as possible. The current setting are 50ms, but the need to be tested on different plattforms.