Blender
V3.3
|
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_utildefines.h"
#include "DNA_scene_types.h"
#include "DNA_sequence_types.h"
#include "DNA_sound_types.h"
#include "DNA_space_types.h"
#include "DNA_userdef_types.h"
#include "BKE_context.h"
#include "BKE_fcurve.h"
#include "BKE_global.h"
#include "BKE_lib_id.h"
#include "BKE_main.h"
#include "BKE_packedFile.h"
#include "BKE_report.h"
#include "BKE_scene.h"
#include "BKE_sound.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_enum_types.h"
#include "RNA_prototypes.h"
#include "SEQ_iterator.h"
#include "SEQ_utils.h"
#include "UI_interface.h"
#include "WM_api.h"
#include "WM_types.h"
#include "DEG_depsgraph_query.h"
#include "ED_sound.h"
#include "ED_util.h"
Go to the source code of this file.
Definition at line 876 of file sound_ops.c.
References SOUND_OT_bake_animation(), SOUND_OT_mixdown(), SOUND_OT_open(), SOUND_OT_open_mono(), SOUND_OT_pack(), SOUND_OT_unpack(), SOUND_OT_update_animation_flags(), and WM_operatortype_append().
Referenced by ED_spacetypes_init().
|
static |
Definition at line 291 of file sound_ops.c.
References BKE_scene_graph_update_for_newframe(), C, RenderData::cfra, CTX_data_depsgraph_pointer(), CTX_data_scene(), depsgraph, NULL, OPERATOR_FINISHED, r, Scene::r, scene, RenderData::sfra, and sound_update_animation_flags_exec().
Referenced by sound_mixdown_exec(), and SOUND_OT_bake_animation().
|
static |
Definition at line 329 of file sound_ops.c.
References FFMpegCodecData::audio_channels, FFMpegCodecData::audio_mixrate, BKE_main_blendfile_path(), BKE_report(), BKE_sound_reset_scene_specs(), BLI_path_abs(), BLI_strncpy(), C, CTX_data_ensure_evaluated_depsgraph(), CTX_data_main(), DEG_get_evaluated_scene(), depsgraph, double(), RenderData::efra, RenderData::ffcodecdata, FILE_MAX, RenderData::frs_sec, RenderData::frs_sec_base, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, Scene::r, wmOperator::reports, result, RNA_boolean_get(), RNA_enum_get(), RNA_int_get(), RNA_string_get(), RPT_ERROR, RenderData::sfra, sound_bake_animation_exec(), Scene::sound_scene, blender::io::alembic::split(), and void.
Referenced by sound_mixdown_invoke(), and SOUND_OT_mixdown().
|
static |
Definition at line 487 of file sound_ops.c.
References C, wmOperator::ptr, RNA_struct_property_is_set(), sound_mixdown_exec(), and WM_operator_filesel().
Referenced by SOUND_OT_mixdown().
|
static |
Definition at line 58 of file sound_ops.c.
References wmOperator::customdata, MEM_freeN, and NULL.
Referenced by SOUND_OT_open(), and SOUND_OT_open_mono().
|
static |
Definition at line 117 of file sound_ops.c.
References BKE_report(), OPERATOR_CANCELLED, wmOperator::reports, and RPT_ERROR.
Referenced by sound_open_invoke(), SOUND_OT_open(), and SOUND_OT_open_mono().
|
static |
Definition at line 64 of file sound_ops.c.
References C, wmOperator::customdata, MEM_callocN, PropertyPointerRNA::prop, PropertyPointerRNA::ptr, and UI_context_active_but_prop_get_templateID().
Referenced by sound_open_invoke().
|
static |
Definition at line 126 of file sound_ops.c.
References C, wmOperator::ptr, RNA_struct_property_is_set(), sound_open_exec(), sound_open_init(), and WM_operator_filesel().
Referenced by SOUND_OT_open(), and SOUND_OT_open_mono().
|
static |
Definition at line 313 of file sound_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, ot, and sound_bake_animation_exec().
Referenced by ED_operatortypes_sound().
|
static |
Definition at line 659 of file sound_ops.c.
References wmOperatorType::check, wmOperatorType::description, wmOperatorType::exec, FILE_DEFAULTDISPLAY, FILE_SAVE, FILE_SORT_DEFAULT, FILE_SPECIAL, FILE_TYPE_FOLDER, FILE_TYPE_SOUND, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NULL, OPTYPE_REGISTER, ot, RNA_def_boolean(), RNA_def_enum(), RNA_def_int(), sound_mixdown_exec(), sound_mixdown_invoke(), wmOperatorType::srna, wmOperatorType::ui, WM_FILESEL_FILEPATH, WM_FILESEL_RELPATH, WM_FILESEL_SHOW_PROPS, and WM_operator_properties_filesel().
Referenced by ED_operatortypes_sound().
|
static |
Definition at line 137 of file sound_ops.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, FILE_DEFAULTDISPLAY, FILE_OPENFILE, FILE_SORT_DEFAULT, FILE_SPECIAL, FILE_TYPE_FOLDER, FILE_TYPE_MOVIE, FILE_TYPE_SOUND, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_boolean(), sound_open_cancel(), sound_open_exec(), sound_open_invoke(), wmOperatorType::srna, WM_FILESEL_FILEPATH, WM_FILESEL_RELPATH, and WM_operator_properties_filesel().
Referenced by ED_operatortypes_sound().
|
static |
Definition at line 164 of file sound_ops.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, FILE_DEFAULTDISPLAY, FILE_OPENFILE, FILE_SORT_DEFAULT, FILE_SPECIAL, FILE_TYPE_FOLDER, FILE_TYPE_MOVIE, FILE_TYPE_SOUND, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_boolean(), sound_open_cancel(), sound_open_exec(), sound_open_invoke(), wmOperatorType::srna, WM_FILESEL_FILEPATH, WM_FILESEL_RELPATH, and WM_operator_properties_filesel().
Referenced by ED_operatortypes_sound().
|
static |
Definition at line 775 of file sound_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, sound_pack_exec(), and sound_poll().
Referenced by ED_operatortypes_sound().
|
static |
Definition at line 851 of file sound_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, MAX_ID_NAME, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, PF_USE_LOCAL, wmOperatorType::poll, RNA_def_enum(), RNA_def_string(), rna_enum_unpack_method_items, sound_poll(), sound_unpack_exec(), sound_unpack_invoke(), and wmOperatorType::srna.
Referenced by ED_operatortypes_sound().
|
static |
Definition at line 268 of file sound_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, ot, and sound_update_animation_flags_exec().
Referenced by ED_operatortypes_sound().
|
static |
Definition at line 751 of file sound_ops.c.
References Editing::act_seq, BKE_packedfile_new(), C, CTX_data_main(), CTX_data_scene(), DEG_id_tag_update_ex(), Scene::ed, bSound::filepath, bSound::id, ID_BLEND_PATH, ID_RECALC_AUDIO, OPERATOR_CANCELLED, OPERATOR_FINISHED, bSound::packedfile, wmOperator::reports, SEQ_TYPE_SOUND_RAM, Sequence::sound, and Sequence::type.
Referenced by SOUND_OT_pack().
Definition at line 739 of file sound_ops.c.
References Editing::act_seq, C, CTX_data_scene(), Scene::ed, SEQ_TYPE_SOUND_RAM, and Sequence::type.
Referenced by SOUND_OT_pack(), and SOUND_OT_unpack().
|
static |
Definition at line 792 of file sound_ops.c.
References BKE_packedfile_unpack_sound(), BKE_report(), BLI_findstring(), C, CTX_data_main(), G, G_FILE_AUTOPACK, MAX_ID_NAME, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, bSound::packedfile, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RNA_string_get(), RNA_struct_property_is_set(), RPT_WARNING, and Main::sounds.
Referenced by SOUND_OT_unpack(), and sound_unpack_invoke().
|
static |
Definition at line 820 of file sound_ops.c.
References Editing::act_seq, BKE_report(), C, CTX_data_scene(), Scene::ed, bSound::filepath, G, G_FILE_AUTOPACK, bSound::id, ID::name, OPERATOR_CANCELLED, OPERATOR_FINISHED, bSound::packedfile, wmOperator::ptr, wmOperator::reports, RNA_struct_property_is_set(), RPT_WARNING, SEQ_TYPE_SOUND_RAM, Sequence::sound, sound_unpack_exec(), Sequence::type, and unpack_menu().
Referenced by SOUND_OT_unpack().
Definition at line 235 of file sound_ops.c.
References Scene::audio, AUDIO_VOLUME_ANIMATED, Scene::ed, AudioData::flag, Scene::id, id_data_find_fcurve(), LIB_TAG_DOIT, NULL, scene, SEQ_for_each_callback(), Editing::seqbase, sound_update_animation_flags_fn(), and ID::tag.
Referenced by sound_update_animation_flags_exec(), and sound_update_animation_flags_fn().
|
static |
Definition at line 258 of file sound_ops.c.
References BKE_main_id_tag_idcode(), C, CTX_data_main(), CTX_data_scene(), DEG_id_tag_update(), Scene::id, ID_RECALC_SEQUENCER_STRIPS, ID_SCE, LIB_TAG_DOIT, OPERATOR_FINISHED, scene, and sound_update_animation_flags().
Referenced by sound_bake_animation_exec(), and SOUND_OT_update_animation_flags().
Definition at line 195 of file sound_ops.c.
References Sequence::flag, Scene::id, id_data_find_fcurve(), scene, Sequence::scene, SEQ_AUDIO_PAN_ANIMATED, SEQ_AUDIO_PITCH_ANIMATED, SEQ_AUDIO_VOLUME_ANIMATED, SEQ_TYPE_SCENE, sound_update_animation_flags(), Sequence::type, and user_data.
Referenced by sound_update_animation_flags().