This commit is contained in:
Ryzerth
2021-08-04 00:14:55 +02:00
parent 604a559b54
commit 2a6c742a51
8 changed files with 39 additions and 13 deletions

View File

@@ -53,7 +53,7 @@ namespace dsp {
}
_in->flush();
if (!out.swap(outCount)) { return -1; }
if (outCount > 0 && !out.swap(outCount)) { return -1; }
return count;
}
@@ -217,7 +217,7 @@ namespace dsp {
memcpy(delay, &_in->readBuf[count - 7], 7 * sizeof(T));
_in->flush();
if (!out.swap(outCount)) { return -1; }
if (outCount > 0 && !out.swap(outCount)) { return -1; }
return count;
}