mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-23 21:05:09 +02:00
push data pointer for recursive read from front
This commit is contained in:
parent
164c06a190
commit
41290dd3e3
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ qint64 AudioInjectorLocalBuffer::recursiveReadFromFront(char* data, qint64 maxSi
|
||||||
|
|
||||||
// check if we need to call ourselves again and pull from the front again
|
// check if we need to call ourselves again and pull from the front again
|
||||||
if (bytesRead < maxSize) {
|
if (bytesRead < maxSize) {
|
||||||
return bytesRead + recursiveReadFromFront(data, maxSize - bytesRead);
|
return bytesRead + recursiveReadFromFront(data + bytesRead, maxSize - bytesRead);
|
||||||
} else {
|
} else {
|
||||||
_currentOffset = bytesRead;
|
_currentOffset = bytesRead;
|
||||||
return bytesRead;
|
return bytesRead;
|
||||||
|
|
Loading…
Reference in a new issue