From e2cb1866ed0073bac8ad2fc3b859da3d8d82fde2 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Fri, 26 Apr 2013 11:59:26 -0700 Subject: [PATCH] add another line of debugging for audio mixer distance coeff --- audio-mixer/src/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/audio-mixer/src/main.cpp b/audio-mixer/src/main.cpp index bc9de27844..9dd7b29008 100644 --- a/audio-mixer/src/main.cpp +++ b/audio-mixer/src/main.cpp @@ -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; }