mirror of
https://github.com/samsonjs/media.git
synced 2026-04-03 10:55:48 +00:00
Oooops... bad comparison
This commit is contained in:
parent
eec4e24ef0
commit
75b5a59f59
1 changed files with 1 additions and 1 deletions
|
|
@ -404,7 +404,7 @@ public final class AudioTrack {
|
|||
if (bytesToWrite > 0) {
|
||||
bytesToWrite = Math.min(temporaryBufferSize, bytesToWrite);
|
||||
bytesWritten = audioTrack.write(temporaryBuffer, temporaryBufferOffset, bytesToWrite);
|
||||
if (bytesWritten < 0) {
|
||||
if (bytesWritten > 0) {
|
||||
temporaryBufferOffset += bytesWritten;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue