Changeset View
Changeset View
Standalone View
Standalone View
source/blender/sequencer/intern/strip_time.c
| Show All 28 Lines | |||||
| #include "BLI_listbase.h" | #include "BLI_listbase.h" | ||||
| #include "BLI_math.h" | #include "BLI_math.h" | ||||
| #include "BKE_movieclip.h" | #include "BKE_movieclip.h" | ||||
| #include "BKE_scene.h" | #include "BKE_scene.h" | ||||
| #include "BKE_sound.h" | #include "BKE_sound.h" | ||||
| #include "DNA_sound_types.h" | |||||
| #include "IMB_imbuf.h" | #include "IMB_imbuf.h" | ||||
| #include "SEQ_render.h" | #include "SEQ_render.h" | ||||
| #include "SEQ_sequencer.h" | #include "SEQ_sequencer.h" | ||||
| #include "SEQ_time.h" | #include "SEQ_time.h" | ||||
| #include "SEQ_transform.h" | #include "SEQ_transform.h" | ||||
| #include "strip_time.h" | #include "strip_time.h" | ||||
| ▲ Show 20 Lines • Show All 83 Lines • ▼ Show 20 Lines | else if (ELEM(seq->type, SEQ_TYPE_SOUND_RAM, SEQ_TYPE_SCENE)) { | ||||
| if (seq->start + seq->len - seq->endofs > end) { | if (seq->start + seq->len - seq->endofs > end) { | ||||
| endofs = seq->start + seq->len - end; | endofs = seq->start + seq->len - end; | ||||
| } | } | ||||
| BKE_sound_move_scene_sound(scene, | BKE_sound_move_scene_sound(scene, | ||||
| seq->scene_sound, | seq->scene_sound, | ||||
| seq->start + startofs, | seq->start + startofs, | ||||
| seq->start + seq->len - endofs, | seq->start + seq->len - endofs, | ||||
| startofs + seq->anim_startofs); | startofs + seq->anim_startofs, | ||||
| seq->sound->offset_time); | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| void seq_update_sound_bounds_recursive(Scene *scene, Sequence *metaseq) | void seq_update_sound_bounds_recursive(Scene *scene, Sequence *metaseq) | ||||
| { | { | ||||
| seq_update_sound_bounds_recursive_impl( | seq_update_sound_bounds_recursive_impl( | ||||
| ▲ Show 20 Lines • Show All 312 Lines • Show Last 20 Lines | |||||