do the same calculation as in client.cpp (first multiplication, then division)
This commit is contained in:
parent
3fc6ccc8aa
commit
9459a73ab5
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue