mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-13 22:27:13 +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);
|
||||
_currentSendOffset += bytesToCopy;
|
||||
totalBytesLeftToCopy -= bytesToCopy;
|
||||
if (_currentSendOffset >= _audioData.size()) {
|
||||
if (_options.loop && _currentSendOffset >= _audioData.size()) {
|
||||
_currentSendOffset = 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue