mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 18:41:10 +02:00
Fix non-looped injected audio possibly looping
This commit is contained in:
parent
4de8e7a3c8
commit
7e5eec55da
1 changed files with 1 additions and 1 deletions
|
@ -281,7 +281,7 @@ int64_t AudioInjector::injectNextFrame() {
|
||||||
_currentPacket->write(_audioData.data() + _currentSendOffset, bytesToCopy);
|
_currentPacket->write(_audioData.data() + _currentSendOffset, bytesToCopy);
|
||||||
_currentSendOffset += bytesToCopy;
|
_currentSendOffset += bytesToCopy;
|
||||||
totalBytesLeftToCopy -= bytesToCopy;
|
totalBytesLeftToCopy -= bytesToCopy;
|
||||||
if (_currentSendOffset >= _audioData.size()) {
|
if (_options.loop && _currentSendOffset >= _audioData.size()) {
|
||||||
_currentSendOffset = 0;
|
_currentSendOffset = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue