commit | acfea7d4d0bd69898985e225df82225f783fb9ba | [log] [tgz] |
---|---|---|
author | Phil Burk <philburk@google.com> | Wed Nov 28 17:49:02 2018 -0800 |
committer | Phil Burk <philburk@google.com> | Wed Nov 28 17:49:02 2018 -0800 |
tree | e56050107f281fae77b4a5a0e54a99a9af668cdf | |
parent | 3822007c183e0634f66e279c9ee597e86f615c40 [diff] |
OboeTester: fix display of buffer size When size was zero it displayed "0 = -1 * 96". Now it will display "0 = 0 * 96".
diff --git a/apps/OboeTester/app/src/main/java/com/google/sample/oboe/manualtest/TestAudioActivity.java b/apps/OboeTester/app/src/main/java/com/google/sample/oboe/manualtest/TestAudioActivity.java index 094eaeb..97e9498 100644 --- a/apps/OboeTester/app/src/main/java/com/google/sample/oboe/manualtest/TestAudioActivity.java +++ b/apps/OboeTester/app/src/main/java/com/google/sample/oboe/manualtest/TestAudioActivity.java
@@ -100,7 +100,7 @@ if (status.bufferSize < 0 || status.framesWritten < 0) { return; } - int numBuffers = -1; + int numBuffers = 0; if (status.bufferSize > 0 && mFramesPerBurst > 0) { numBuffers = status.bufferSize / mFramesPerBurst; }