Fix T50843: Pitched Audio renders incorrectly in VSE

There was a bug in the intended code behaviour to always seek with a
pitch of 1.0 regardless of pitch/pitch animation/doppler effects.

Check the bug report for a more detailed explanation of problems
concerning pitch and seeking.
This commit is contained in:
Joerg Mueller 2017-03-05 12:19:32 +01:00
parent 4a4d71414e
commit f75b52eca1
Notes: blender-bot 2023-02-14 07:10:44 +01:00
Referenced by issue #50843, Pitched Audio renders incorrectly in VSE
1 changed files with 1 additions and 0 deletions

View File

@ -365,6 +365,7 @@ bool AUD_SoftwareDevice::AUD_SoftwareHandle::seek(float position)
if(!m_status)
return false;
m_pitch->setPitch(m_user_pitch);
m_reader->seek((int)(position * m_reader->getSpecs().rate));
if(m_status == AUD_STATUS_STOPPED)