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
|
||||
// samples) and calculate the time in ms
|
||||
dInOutLatencyMs =
|
||||
( static_cast<double> ( lInputLatency ) + lOutputLatency ) /
|
||||
SYSTEM_SAMPLE_RATE_HZ * 1000;
|
||||
( static_cast<double> ( lInputLatency ) + lOutputLatency ) *
|
||||
1000 / SYSTEM_SAMPLE_RATE_HZ;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue