mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 02:03:11 +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;
|
bytesWritten = maxSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
int bytesAudioOutputUnplayed = _audio->_audioOutput->bufferSize() - _audio->_audioOutput->bytesFree();
|
bool wasBufferStarved = _audio->_audioOutput->bufferSize() == _audio->_audioOutput->bytesFree();
|
||||||
if (!bytesAudioOutputUnplayed) {
|
if (wasBufferStarved) {
|
||||||
_unfulfilledReads++;
|
_unfulfilledReads++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue