Patch implements better way to control playback speed than it is possible to do with speed effect. Speed factor property can be set in Time panel. There are 2 layers of control: Option to retime movie to match scene FPS rate. Custom speed factor to control playback rate. Since playback rate is strip property, it is now possible to manipulate strip as normal one even if it is retimed. To facilitate manipulation, some functions need to consider speed factor and apply necessary corrections to strip offset or strip start. These corrections may need to be float numbers, so start and offsets must be float as well. Sound strips now use speed factor instead of pitch. This means, that strips will change length to match usable length. In addition, it is possible to group movie and sound strip and change speed of meta strip.
28 lines
635 B
C++
28 lines
635 B
C++
/* SPDX-License-Identifier: GPL-2.0-or-later
|
|
* Copyright 2004 Blender Foundation. All rights reserved. */
|
|
|
|
#pragma once
|
|
|
|
/** \file
|
|
* \ingroup sequencer
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
struct Main;
|
|
struct Scene;
|
|
struct Sequence;
|
|
struct bSound;
|
|
|
|
void SEQ_sound_update_bounds_all(struct Scene *scene);
|
|
void SEQ_sound_update_bounds(struct Scene *scene, struct Sequence *seq);
|
|
void SEQ_sound_update(struct Scene *scene, struct bSound *sound);
|
|
void SEQ_sound_update_length(struct Main *bmain, struct Scene *scene);
|
|
float SEQ_sound_pitch_get(const struct Scene *scene, const struct Sequence *seq);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|