mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 01:04:06 +02:00
added check before pushAudioToOutput to prevent starvecount buildup
This commit is contained in:
parent
636b6d3307
commit
24be668d36
2 changed files with 5 additions and 1 deletions
|
@ -709,7 +709,9 @@ void Audio::handleAudioInput() {
|
|||
delete[] inputAudioSamples;
|
||||
}
|
||||
|
||||
pushAudioToOutput();
|
||||
if (_receivedAudioStream.getPacketReceived() > 0) {
|
||||
pushAudioToOutput();
|
||||
}
|
||||
}
|
||||
|
||||
void Audio::addReceivedAudioToStream(const QByteArray& audioByteArray) {
|
||||
|
|
|
@ -108,6 +108,8 @@ public:
|
|||
int getSilentFramesDropped() const { return _silentFramesDropped; }
|
||||
int getOverflowCount() const { return _ringBuffer.getOverflowCount(); }
|
||||
|
||||
int getPacketReceived() const { return _incomingSequenceNumberStats.getNumReceived(); }
|
||||
|
||||
private:
|
||||
void starved();
|
||||
|
||||
|
|
Loading…
Reference in a new issue