Bug 440077 - When choosing a frame to play from other than 0, the audio start position seems multiplied by PI
Summary: When choosing a frame to play from other than 0, the audio start position see...
Status: RESOLVED DUPLICATE of bug 385589
Alias: None
Product: krita
Classification: Applications
Component: Animation (show other bugs)
Version: 4.4.5
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-20 15:07 UTC by tehvoran
Modified: 2021-07-22 09:11 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tehvoran 2021-07-20 15:07:09 UTC
SUMMARY

When you add a sound to an animation, you generally do so in order to animate something in sync with the sound. However, when starting at a frame other than 0, you will start at a different point in the audio at, say, frame 100, than you would if you started at 0 and waited until reaching frame 100. This difference seems to be off by PI; that is, if a sound would have occurred at, say, 32 seconds, starting the animation at frame 100 (approximately 32*PI) will start the audio at that sound. 

STEPS TO REPRODUCE
1. Open an audio file in animation mode, preferably at least 30 seconds, with a distinct sound.
2. (optional) Slow the frame rate to 1 FPS, to make it simpler to mark down the frame that the sound occurs.
3. Play the animation from frame 0, marking down the approximate frame that the sound occurs.
4. Play the animation from the frame that the sound should have occurred. Note that the sound has not yet been played.
5. Multiply the expected frame by PI, and play from that frame. Note that the sound occurs (within a margin of error due to rounding).

OBSERVED RESULT
Audio files are played from the wrong location when started from frames > 0 

EXPECTED RESULT
Audio files should align to the animation properly, no matter what frame the animation is started on.

SOFTWARE/OS VERSIONS
Windows: 10
Comment 1 Ahab Greybeard 2021-07-22 09:11:04 UTC
Audio in krita is known have bugs and the synchronisation problems have been noted and reported often. Fixing it is regarded as a long term activity.

I'll mark this as a duplicate report.

You observation about a multiple of Pi will be seen by the developers when they begin to deal with this area.

*** This bug has been marked as a duplicate of bug 385589 ***