mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:24:00 +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;
|
||||
|
||||
// memcpy the three float positions
|
||||
for (int p = 0; p < 3; p++) {
|
||||
memcpy(currentPacketPtr, &data->linkedAvatar->getPosition()[p], sizeof(float));
|
||||
currentPacketPtr += sizeof(float);
|
||||
}
|
||||
memcpy(currentPacketPtr, &data->linkedAvatar->getHeadPosition(), sizeof(float) * 3);
|
||||
currentPacketPtr += (sizeof(float) * 3);
|
||||
|
||||
// tell the mixer not to add additional attenuation to our source
|
||||
*(currentPacketPtr++) = 255;
|
||||
|
|
Loading…
Reference in a new issue