android: no sound with android < 6.0

This commit is contained in:
Flyinghead 2019-03-07 13:07:44 +01:00
parent f48c03220a
commit 106409a2c0
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ public final class AudioBackend {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
audioTrack.write(samples, 0, samples.length, wait ? AudioTrack.WRITE_BLOCKING : AudioTrack.WRITE_NON_BLOCKING);
} else {
if (wait)
if (!wait)
{
int newdata = samples.length / 2;