Skip to content

Commit

Permalink
Change how audio loss is counted
Browse files Browse the repository at this point in the history
  • Loading branch information
freyacodes committed Apr 11, 2020
1 parent fcc1ffe commit 04ccda1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,13 @@ public boolean canSendFrame() {
audioLossCounter.onLoss();
return false;
} else {
audioLossCounter.onSuccess();
return true;
}
}

@Override
public void retrieve(Codec codec, ByteBuf buf) {
audioLossCounter.onSuccess();
buf.writeBytes(lastFrame.getData());
}

Expand Down

0 comments on commit 04ccda1

Please sign in to comment.