don't use distance attenuation in audio mixer for now

This commit is contained in:
Stephen Birarda 2013-03-29 08:20:37 -07:00
parent 3186254a93
commit ffd2f61420

View file

@ -185,15 +185,13 @@ void *sendBuffer(void *args)
// pull the earlier sample for the delayed channel // pull the earlier sample for the delayed channel
int earlierSample = delaySamplePointer[s] * int earlierSample = delaySamplePointer[s] *
distanceCoeffs[lowAgentIndex][highAgentIndex] * distanceCoeffs[lowAgentIndex][highAgentIndex];
otherAgentBuffer->getAttenuationRatio();
plateauAdditionOfSamples(delayedChannel[s], earlierSample * weakChannelAmplitudeRatio); plateauAdditionOfSamples(delayedChannel[s], earlierSample * weakChannelAmplitudeRatio);
} }
int16_t currentSample = (otherAgentBuffer->getNextOutput()[s] * int16_t currentSample = (otherAgentBuffer->getNextOutput()[s] *
distanceCoeffs[lowAgentIndex][highAgentIndex]) * distanceCoeffs[lowAgentIndex][highAgentIndex]);
otherAgentBuffer->getAttenuationRatio();
plateauAdditionOfSamples(goodChannel[s], currentSample); plateauAdditionOfSamples(goodChannel[s], currentSample);
if (s + numSamplesDelay < BUFFER_LENGTH_SAMPLES_PER_CHANNEL) { if (s + numSamplesDelay < BUFFER_LENGTH_SAMPLES_PER_CHANNEL) {