Showing the changes to interface/src/Audio.cpp (1 of 1 file). Show all
Unified · Split
| @@ -448,7 +448,7 @@ void Audio::addReceivedAudioToBuffer(unsigned char* receivedData, int receivedBy · 447 unmodified lines | |||
| 448 | 448 | ||
| 449 | //printf("Got audio packet %d\n", _packetsReceivedThisPlayback); | 449 | //printf("Got audio packet %d\n", _packetsReceivedThisPlayback); |
| 450 | 450 | ||
| 451 | _ringBuffer.parseData((unsigned char*) receivedData, PACKET_LENGTH_BYTES + sizeof(PACKET_TYPE)); | 451 | _ringBuffer.parseData((unsigned char*) receivedData, receivedBytes); |
| 452 | 452 | ||
| 453 | Application::getInstance()->getBandwidthMeter()->inputStream(BandwidthMeter::AUDIO) | 453 | Application::getInstance()->getBandwidthMeter()->inputStream(BandwidthMeter::AUDIO) |
| 454 | .updateValue(PACKET_LENGTH_BYTES + sizeof(PACKET_TYPE)); | 454 | .updateValue(PACKET_LENGTH_BYTES + sizeof(PACKET_TYPE)); |