mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 20:06:02 +02:00
Revert "don't send or parse attenuation for now"
This reverts commit 1767f2b052
.
This commit is contained in:
parent
ad0b2f024b
commit
124fecf8c9
2 changed files with 6 additions and 0 deletions
|
@ -158,6 +158,9 @@ int audioCallback (const void *inputBuffer,
|
||||||
currentPacketPtr += sizeof(float);
|
currentPacketPtr += sizeof(float);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// tell the mixer not to add additional attenuation to our source
|
||||||
|
*(currentPacketPtr++) = 255;
|
||||||
|
|
||||||
// memcpy the corrected render yaw
|
// memcpy the corrected render yaw
|
||||||
float correctedYaw = fmodf(data->linkedHead->getRenderYaw(), 360);
|
float correctedYaw = fmodf(data->linkedHead->getRenderYaw(), 360);
|
||||||
|
|
||||||
|
|
|
@ -117,6 +117,9 @@ void AudioRingBuffer::parseData(void *data, int size) {
|
||||||
dataPtr += sizeof(float);
|
dataPtr += sizeof(float);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unsigned int attenuationByte = *(dataPtr++);
|
||||||
|
attenuationRatio = attenuationByte / 255.0f;
|
||||||
|
|
||||||
memcpy(&bearing, dataPtr, sizeof(float));
|
memcpy(&bearing, dataPtr, sizeof(float));
|
||||||
dataPtr += sizeof(float);
|
dataPtr += sizeof(float);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue