mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 19:10:49 +02:00
send head position as source position to mixer
This commit is contained in:
parent
ded5da47ff
commit
948f9607f6
1 changed files with 2 additions and 4 deletions
|
@ -151,10 +151,8 @@ int audioCallback (const void *inputBuffer,
|
||||||
unsigned char *currentPacketPtr = dataPacket + 1;
|
unsigned char *currentPacketPtr = dataPacket + 1;
|
||||||
|
|
||||||
// memcpy the three float positions
|
// memcpy the three float positions
|
||||||
for (int p = 0; p < 3; p++) {
|
memcpy(currentPacketPtr, &data->linkedAvatar->getHeadPosition(), sizeof(float) * 3);
|
||||||
memcpy(currentPacketPtr, &data->linkedAvatar->getPosition()[p], sizeof(float));
|
currentPacketPtr += (sizeof(float) * 3);
|
||||||
currentPacketPtr += sizeof(float);
|
|
||||||
}
|
|
||||||
|
|
||||||
// tell the mixer not to add additional attenuation to our source
|
// tell the mixer not to add additional attenuation to our source
|
||||||
*(currentPacketPtr++) = 255;
|
*(currentPacketPtr++) = 255;
|
||||||
|
|
Loading…
Reference in a new issue