do the same calculation as in client.cpp (first multiplication, then division)

This commit is contained in:
Volker Fischer 2013-12-17 20:55:35 +00:00
parent 3fc6ccc8aa
commit 9459a73ab5

View file

@ -372,8 +372,8 @@ int CSound::Init ( const int iNewPrefMonoBufferSize )
// add the input and output latencies (returned in number of // add the input and output latencies (returned in number of
// samples) and calculate the time in ms // samples) and calculate the time in ms
dInOutLatencyMs = dInOutLatencyMs =
( static_cast<double> ( lInputLatency ) + lOutputLatency ) / ( static_cast<double> ( lInputLatency ) + lOutputLatency ) *
SYSTEM_SAMPLE_RATE_HZ * 1000; 1000 / SYSTEM_SAMPLE_RATE_HZ;
} }
else else
{ {