Problem getting the real output latency

DirectSound is completely useless when it comes to reporting the latency. If you use WASAPI or ASIO, (or anything else, really), then the latency figure will be accurate, but with DirectSound, no chance!