From bf21f1edd51686d0a5e389a4433c3c6dd431b90d Mon Sep 17 00:00:00 2001 From: kimvde Date: Wed, 3 Apr 2024 07:15:28 -0700 Subject: [PATCH] Add methods to seek in preview audio pipeline PiperOrigin-RevId: 621513330 --- .../src/main/java/androidx/media3/transformer/AudioGraph.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/transformer/src/main/java/androidx/media3/transformer/AudioGraph.java b/libraries/transformer/src/main/java/androidx/media3/transformer/AudioGraph.java index 639ef84905..a1882fb064 100644 --- a/libraries/transformer/src/main/java/androidx/media3/transformer/AudioGraph.java +++ b/libraries/transformer/src/main/java/androidx/media3/transformer/AudioGraph.java @@ -137,6 +137,8 @@ import java.util.Objects; */ public ByteBuffer getOutput() throws ExportException { if (mixerSourcesToAdd > 0) { + // TODO(b/303029174): Consider adding the mixer sources at the start of playback and after a + // seek at the same place in the code. addMixerSources(); if (mixerSourcesToAdd > 0) { return EMPTY_BUFFER;