Add methods to seek in preview audio pipeline

PiperOrigin-RevId: 621513330
This commit is contained in:
kimvde 2024-04-03 07:15:28 -07:00 committed by Copybara-Service
parent 59710a5f81
commit bf21f1edd5

View File

@ -137,6 +137,8 @@ import java.util.Objects;
*/ */
public ByteBuffer getOutput() throws ExportException { public ByteBuffer getOutput() throws ExportException {
if (mixerSourcesToAdd > 0) { 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(); addMixerSources();
if (mixerSourcesToAdd > 0) { if (mixerSourcesToAdd > 0) {
return EMPTY_BUFFER; return EMPTY_BUFFER;