mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 07:43:57 +02:00
complete the test injector stub
This commit is contained in:
parent
0eb22fdc60
commit
7ed609633a
2 changed files with 2 additions and 3 deletions
|
@ -1320,7 +1320,6 @@ void Application::timer() {
|
|||
|
||||
if (testInjector.size()) {
|
||||
testInjector.setPosition(_myAvatar.getHead().getPosition());
|
||||
testInjector.setOrientation(_myAvatar.getOrientation());
|
||||
testInjector.injectViaThread();
|
||||
}
|
||||
|
||||
|
|
|
@ -97,7 +97,7 @@ void AudioInjector::injectAudio(AbstractAudioInterface* localAudioInterface) {
|
|||
memcpy(currentPacketPosition, &_position, sizeof(_position));
|
||||
currentPacketPosition += sizeof(_position);
|
||||
|
||||
// pack a zero orientation for injected audio
|
||||
// pack our orientation for injected audio
|
||||
memcpy(currentPacketPosition, &_orientation, sizeof(_orientation));
|
||||
currentPacketPosition += sizeof(_orientation);
|
||||
|
||||
|
@ -107,7 +107,7 @@ void AudioInjector::injectAudio(AbstractAudioInterface* localAudioInterface) {
|
|||
currentPacketPosition += sizeof(radius);
|
||||
|
||||
// pack 255 for attenuation byte
|
||||
uchar volume = 1;
|
||||
uchar volume = 255;
|
||||
memcpy(currentPacketPosition, &volume, sizeof(volume));
|
||||
currentPacketPosition += sizeof(volume);
|
||||
|
||||
|
|
Loading…
Reference in a new issue