Revert "don't send or parse attenuation for now"

This reverts commit 1767f2b052.
This commit is contained in:
Stephen Birarda 2013-04-01 12:28:51 -07:00
parent ad0b2f024b
commit 124fecf8c9
2 changed files with 6 additions and 0 deletions

View file

@ -158,6 +158,9 @@ int audioCallback (const void *inputBuffer,
currentPacketPtr += sizeof(float);
}
// tell the mixer not to add additional attenuation to our source
*(currentPacketPtr++) = 255;
// memcpy the corrected render yaw
float correctedYaw = fmodf(data->linkedHead->getRenderYaw(), 360);

View file

@ -117,6 +117,9 @@ void AudioRingBuffer::parseData(void *data, int size) {
dataPtr += sizeof(float);
}
unsigned int attenuationByte = *(dataPtr++);
attenuationRatio = attenuationByte / 255.0f;
memcpy(&bearing, dataPtr, sizeof(float));
dataPtr += sizeof(float);