VSE: Add sound strip retiming support #105072

Merged
Richard Antalik merged 16 commits from iss/blender:retiming-sound-2 into main 2023-04-21 16:53:39 +02:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit d475fb0cea - Show all commits

View File

@ -251,7 +251,7 @@ bool SequenceHandle::seek(double position)
double target_frame = 0;
if(pitch_property != nullptr)
{
int frame_start = m_entry->m_begin * m_entry->m_sequence_data->getFPS();
int frame_start = (m_entry->m_begin + m_entry->m_skip) * m_entry->m_sequence_data->getFPS();
iss marked this conversation as resolved Outdated

Since this is just an integer loop, the fractal part of seek_frame is not considered. For more accurate seeking, I recommend to still consider it though.

Since this is just an integer loop, the fractal part of `seek_frame` is not considered. For more accurate seeking, I recommend to still consider it though.
int i = 0;
while(seek_frame > 0)
{