This commit is contained in:
ZappoMan 2013-03-29 08:24:30 -07:00
commit 565b6f877c

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) {