mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-08 17:03:11 +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);
|
||||
}
|
||||
|
||||
// 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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue