add another line of debugging for audio mixer distance coeff

This commit is contained in:
Stephen Birarda 2013-04-26 11:59:26 -07:00
parent 57c39ceb99
commit e2cb1866ed

View file

@ -146,6 +146,7 @@ void *sendBuffer(void *args)
float minCoefficient = std::min(1.0f,
powf(0.5, (logf(DISTANCE_RATIO * distanceToAgent) / logf(3)) - 1));
printf("The distance between the two agents is %d\n", distanceToAgent);
printf("The DC between agent %d and %d is %f\n", agent->getAgentId(), otherAgent->getAgentId(), minCoefficient);
distanceCoeffs[lowAgentIndex][highAgentIndex] = minCoefficient;
}