mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00

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