mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 05:52:31 +02:00
fix silent audio on client
This commit is contained in:
parent
ccc04688d2
commit
55954899e6
1 changed files with 2 additions and 2 deletions
|
@ -116,7 +116,7 @@ int audioCallback (const void* inputBuffer,
|
||||||
printLog("got output\n");
|
printLog("got output\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (inputLeft != NULL) {
|
if (inputLeft) {
|
||||||
|
|
||||||
// Measure the loudness of the signal from the microphone and store in audio object
|
// Measure the loudness of the signal from the microphone and store in audio object
|
||||||
float loudness = 0;
|
float loudness = 0;
|
||||||
|
@ -457,7 +457,7 @@ void Audio::addReceivedAudioToBuffer(unsigned char* receivedData, int receivedBy
|
||||||
gettimeofday(&_firstPlaybackTime, NULL);
|
gettimeofday(&_firstPlaybackTime, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
_ringBuffer.parseData((unsigned char *)receivedData, PACKET_LENGTH_BYTES);
|
_ringBuffer.parseData((unsigned char *)receivedData, PACKET_LENGTH_BYTES + sizeof(PACKET_HEADER));
|
||||||
|
|
||||||
_lastReceiveTime = currentReceiveTime;
|
_lastReceiveTime = currentReceiveTime;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue