mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-04-09 09:12:50 +02:00
last pieces of debugging for mixer crash
This commit is contained in:
parent
2a1357e8e1
commit
78df9fb2ed
1 changed files with 4 additions and 0 deletions
|
@ -36,6 +36,8 @@ int AudioRingBuffer::parseData(unsigned char* sourceBuffer, int numBytes) {
|
|||
|
||||
unsigned char* dataBuffer = sourceBuffer + 1;
|
||||
|
||||
printf("The number of bytes received is %d\n", numBytes);
|
||||
|
||||
if (sourceBuffer[0] == PACKET_HEADER_INJECT_AUDIO ||
|
||||
sourceBuffer[0] == PACKET_HEADER_MICROPHONE_AUDIO) {
|
||||
// if this came from an injector or interface client
|
||||
|
@ -56,6 +58,8 @@ int AudioRingBuffer::parseData(unsigned char* sourceBuffer, int numBytes) {
|
|||
memcpy(&_bearing, dataBuffer, sizeof(float));
|
||||
dataBuffer += sizeof(_bearing);
|
||||
|
||||
printf("This agent's bearing is %f\n", _bearing);
|
||||
|
||||
if (_bearing > 180 || _bearing < -180) {
|
||||
// we were passed an invalid bearing because this agent wants loopback (pressed the H key)
|
||||
_shouldLoopbackForAgent = true;
|
||||
|
|
Loading…
Reference in a new issue