mirror of
https://github.com/overte-org/overte.git
synced 2025-04-15 05:07:12 +02:00
bring audio starve check to standard
This commit is contained in:
parent
d7643ef2a0
commit
2a2673d898
1 changed files with 2 additions and 2 deletions
|
@ -1398,8 +1398,8 @@ qint64 AudioClient::AudioOutputIODevice::readData(char * data, qint64 maxSize) {
|
|||
bytesWritten = maxSize;
|
||||
}
|
||||
|
||||
int bytesAudioOutputUnplayed = _audio->_audioOutput->bufferSize() - _audio->_audioOutput->bytesFree();
|
||||
if (!bytesAudioOutputUnplayed) {
|
||||
bool wasBufferStarved = _audio->_audioOutput->bufferSize() == _audio->_audioOutput->bytesFree();
|
||||
if (wasBufferStarved) {
|
||||
_unfulfilledReads++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue