mirror of
https://github.com/lubosz/overte.git
synced 2025-04-08 15:43:24 +02:00
reduce codec mismatch and starve log spam
This commit is contained in:
parent
6750d4a370
commit
dacf343e9a
1 changed files with 2 additions and 7 deletions
|
@ -171,7 +171,6 @@ int InboundAudioStream::parseData(ReceivedMessage& message) {
|
|||
|
||||
} else {
|
||||
_mismatchedAudioCodecCount++;
|
||||
qDebug(audio) << "Codec mismatch: expected" << _selectedCodecName << "got" << codecInPacket;
|
||||
|
||||
if (packetPCM) {
|
||||
// If there are PCM packets in-flight after the codec is changed, use them.
|
||||
|
@ -191,7 +190,8 @@ int InboundAudioStream::parseData(ReceivedMessage& message) {
|
|||
auto sendingNode = DependencyManager::get<NodeList>()->nodeWithLocalID(message.getSourceID());
|
||||
if (sendingNode) {
|
||||
emit mismatchedAudioCodec(sendingNode, _selectedCodecName, codecInPacket);
|
||||
qDebug(audio) << "Codec mismatch threshold exceeded, SelectedAudioFormat(" << _selectedCodecName << " ) sent";
|
||||
qDebug(audio) << "Codec mismatch threshold exceeded, sent selected codec"
|
||||
<< _selectedCodecName << "to" << message.getSenderSockAddr();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -208,7 +208,6 @@ int InboundAudioStream::parseData(ReceivedMessage& message) {
|
|||
int framesAvailable = _ringBuffer.framesAvailable();
|
||||
// if this stream was starved, check if we're still starved.
|
||||
if (_isStarved && framesAvailable >= _desiredJitterBufferFrames) {
|
||||
qCInfo(audiostream, "Starve ended");
|
||||
_isStarved = false;
|
||||
}
|
||||
// if the ringbuffer exceeds the desired size by more than the threshold specified,
|
||||
|
@ -378,10 +377,6 @@ void InboundAudioStream::framesAvailableChanged() {
|
|||
}
|
||||
|
||||
void InboundAudioStream::setToStarved() {
|
||||
if (!_isStarved) {
|
||||
qCInfo(audiostream, "Starved");
|
||||
}
|
||||
|
||||
_consecutiveNotMixedCount = 0;
|
||||
_starveCount++;
|
||||
// if we have more than the desired frames when setToStarved() is called, then we'll immediately
|
||||
|
|
Loading…
Reference in a new issue