mirror of
https://github.com/samsonjs/media.git
synced 2026-03-25 09:25:53 +00:00
Fix audio slow motion flattening
PiperOrigin-RevId: 488981968
This commit is contained in:
parent
e1fe3120e2
commit
7b874e2dee
1 changed files with 6 additions and 1 deletions
|
|
@ -15,7 +15,6 @@
|
|||
*/
|
||||
package androidx.media3.common.audio;
|
||||
|
||||
import static androidx.media3.common.audio.AudioProcessor.EMPTY_BUFFER;
|
||||
import static androidx.media3.common.util.Assertions.checkState;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
|
|
@ -24,6 +23,7 @@ import androidx.media3.common.util.UnstableApi;
|
|||
import com.google.common.collect.ImmutableList;
|
||||
import com.google.errorprone.annotations.CanIgnoreReturnValue;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.nio.ByteOrder;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
|
|
@ -68,6 +68,11 @@ import java.util.List;
|
|||
*/
|
||||
@UnstableApi
|
||||
public final class AudioProcessingPipeline {
|
||||
|
||||
/** An empty, direct {@link ByteBuffer}. */
|
||||
private static final ByteBuffer EMPTY_BUFFER =
|
||||
ByteBuffer.allocateDirect(0).order(ByteOrder.nativeOrder());
|
||||
|
||||
/** The {@link AudioProcessor} instances passed to {@link AudioProcessingPipeline}. */
|
||||
private final ImmutableList<AudioProcessor> audioProcessors;
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue