media/libraries/common/src
ivanbuper 871381288c Use static methods for getSpeedAdjustedTimeAsync and getMediaDurationUs
This change simplifies SpeedChangingAudioProcessor by removing unneeded
heuristics and synchronization added as workarounds to estimate input
and output frame counts.

The synchronization between the video processing and audio processing
threads cannot be completely removed yet because the static methods
depend on the input sample rate for the calculations. However, once
`SpeedChangingAudioProcessor` has been configured, then
`#getSpeedAdjustedTimeAsync()` should invoke the callback immediately.

PiperOrigin-RevId: 712893246
2025-01-07 06:49:49 -08:00
..
main Use static methods for getSpeedAdjustedTimeAsync and getMediaDurationUs 2025-01-07 06:49:49 -08:00
test Use static methods for getSpeedAdjustedTimeAsync and getMediaDurationUs 2025-01-07 06:49:49 -08:00