Bug 478134

Summary: Anim Audio: Timeline scrubbing pushing too much audio.
Product: [Applications] krita Reporter: Emmet O'Neill <emmetoneill.pdx>
Component: AnimationAssignee: Krita Bugs <krita-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: dimula73
Priority: NOR    
Version First Reported In: 5.2.1   
Target Milestone: ---   
Platform: Appimage   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Emmet O'Neill 2023-12-05 23:23:47 UTC
SUMMARY

When animation with audio, scrubbing (changing frames quickly via the timeline time ruler header) pushes multiple frames of audio which can block the program until the audio is processed. 

This is usually a minor issue, but becomes worse with (a) lower playback framerate and (b) lower playback speed.
Setting the animation to a low speed and framerate before scrubbing (with audio attached) will push tens of seconds of audio, causing Krita to slow down until it's all been played.

STEPS TO REPRODUCE
1. Open an animation
2. Attach some audio
3. Set low animation playback framerate.
4. Set low animation playback speed.
5. Scrub between frames on the timeline.

OBSERVED RESULT

Listen to a half minute of cow noises.

EXPECTED RESULT

We probably need to limit the rate of pushing audio based on the amount of time a single frame of audio takes to play (considering both anim framerate and speed).
Comment 1 Emmet O'Neill 2024-01-26 21:43:54 UTC
Me again, just marking as confirmed.
Comment 2 Dmitry Kazakov 2024-10-25 14:25:39 UTC
Hi, Emmet!

Could you please recheck if the bug is still valid after my recent refactoring of MLT library?