The previous calculation was wrong and could lead to two potential issues:
To fix this issue, use the same sleep calculation than wasapi.