mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-19 00:57:35 +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");
|
||||
}
|
||||
|
||||
if (inputLeft != NULL) {
|
||||
if (inputLeft) {
|
||||
|
||||
// Measure the loudness of the signal from the microphone and store in audio object
|
||||
float loudness = 0;
|
||||
|
@ -457,7 +457,7 @@ void Audio::addReceivedAudioToBuffer(unsigned char* receivedData, int receivedBy
|
|||
gettimeofday(&_firstPlaybackTime, NULL);
|
||||
}
|
||||
|
||||
_ringBuffer.parseData((unsigned char *)receivedData, PACKET_LENGTH_BYTES);
|
||||
_ringBuffer.parseData((unsigned char *)receivedData, PACKET_LENGTH_BYTES + sizeof(PACKET_HEADER));
|
||||
|
||||
_lastReceiveTime = currentReceiveTime;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue