mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 20:31:29 +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;
|
delete[] inputAudioSamples;
|
||||||
}
|
}
|
||||||
|
|
||||||
pushAudioToOutput();
|
if (_receivedAudioStream.getPacketReceived() > 0) {
|
||||||
|
pushAudioToOutput();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Audio::addReceivedAudioToStream(const QByteArray& audioByteArray) {
|
void Audio::addReceivedAudioToStream(const QByteArray& audioByteArray) {
|
||||||
|
|
|
@ -108,6 +108,8 @@ public:
|
||||||
int getSilentFramesDropped() const { return _silentFramesDropped; }
|
int getSilentFramesDropped() const { return _silentFramesDropped; }
|
||||||
int getOverflowCount() const { return _ringBuffer.getOverflowCount(); }
|
int getOverflowCount() const { return _ringBuffer.getOverflowCount(); }
|
||||||
|
|
||||||
|
int getPacketReceived() const { return _incomingSequenceNumberStats.getNumReceived(); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void starved();
|
void starved();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue