mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 05:17:02 +02:00
don't use distance attenuation in audio mixer for now
This commit is contained in:
parent
3186254a93
commit
ffd2f61420
1 changed files with 2 additions and 4 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue