Bug 440077

Summary: When choosing a frame to play from other than 0, the audio start position seems multiplied by PI
Product: [Applications] krita Reporter: tehvoran
Component: AnimationAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: ahab.greybeard
Priority: NOR    
Version: 4.4.5   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:

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 ***