Commit 7abbd6aa by samrobinson Committed by christosts

Use EMPTY_BUFFER in SpeedChangingAudioProcessorTest.

PiperOrigin-RevId: 504264862
parent fb074e18
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
*/ */
package com.google.android.exoplayer2.transformer; package com.google.android.exoplayer2.transformer;
import static com.google.android.exoplayer2.audio.AudioProcessor.EMPTY_BUFFER;
import static com.google.android.exoplayer2.util.Assertions.checkArgument; import static com.google.android.exoplayer2.util.Assertions.checkArgument;
import static com.google.common.truth.Truth.assertThat; import static com.google.common.truth.Truth.assertThat;
...@@ -371,8 +372,7 @@ public class SpeedChangingAudioProcessorTest { ...@@ -371,8 +372,7 @@ public class SpeedChangingAudioProcessorTest {
} }
private static ByteBuffer getAudioProcessorOutput(AudioProcessor audioProcessor) { private static ByteBuffer getAudioProcessorOutput(AudioProcessor audioProcessor) {
ByteBuffer concatenatedOutputBuffers = ByteBuffer concatenatedOutputBuffers = EMPTY_BUFFER;
ByteBuffer.allocateDirect(0).order(ByteOrder.nativeOrder());
while (true) { while (true) {
ByteBuffer outputBuffer = audioProcessor.getOutput(); ByteBuffer outputBuffer = audioProcessor.getOutput();
if (!outputBuffer.hasRemaining()) { if (!outputBuffer.hasRemaining()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment