mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 00:13:53 +02:00
replace magic number 1 with sizeof
This commit is contained in:
parent
115c39dbcf
commit
ecd03d7b4b
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ int audioCallback (const void* inputBuffer,
|
|||
glm::vec3 headPosition = interfaceAvatar->getHeadJointPosition();
|
||||
glm::quat headOrientation = interfaceAvatar->getHead().getOrientation();
|
||||
|
||||
int leadingBytes = 1 + sizeof(headPosition) + sizeof(headOrientation);
|
||||
int leadingBytes = sizeof(PACKET_HEADER_MICROPHONE_AUDIO_NO_ECHO) + sizeof(headPosition) + sizeof(headOrientation);
|
||||
|
||||
// we need the amount of bytes in the buffer + 1 for type
|
||||
// + 12 for 3 floats for position + float for bearing + 1 attenuation byte
|
||||
|
|
Loading…
Reference in a new issue