Bug 478134 - Anim Audio: Timeline scrubbing pushing too much audio.
Summary: Anim Audio: Timeline scrubbing pushing too much audio.
Status: CONFIRMED
Alias: None
Product: krita
Classification: Applications
Component: Animation (show other bugs)
Version: 5.2.1
Platform: Appimage Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-05 23:23 UTC by Emmet O'Neill
Modified: 2024-10-25 14:25 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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?