Commit 7abbd6aa by samrobinson Committed by christosts

Use EMPTY_BUFFER in SpeedChangingAudioProcessorTest.

PiperOrigin-RevId: 504264862
parent fb074e18
......@@ -15,6 +15,7 @@
*/
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.common.truth.Truth.assertThat;
......@@ -371,8 +372,7 @@ public class SpeedChangingAudioProcessorTest {
}
private static ByteBuffer getAudioProcessorOutput(AudioProcessor audioProcessor) {
ByteBuffer concatenatedOutputBuffers =
ByteBuffer.allocateDirect(0).order(ByteOrder.nativeOrder());
ByteBuffer concatenatedOutputBuffers = EMPTY_BUFFER;
while (true) {
ByteBuffer outputBuffer = audioProcessor.getOutput();
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