|
Blender V4.3
|
#include <cstdlib>#include <cstring>#include <optional>#include "MEM_guardedalloc.h"#include "BLI_blenlib.h"#include "BLI_iterator.h"#include "BLI_math_rotation.h"#include "BLI_threads.h"#include "BLT_translation.hh"#include "DNA_anim_types.h"#include "DNA_object_types.h"#include "DNA_packedFile_types.h"#include "DNA_scene_types.h"#include "DNA_screen_types.h"#include "DNA_sequence_types.h"#include "DNA_sound_types.h"#include "DNA_speaker_types.h"#include "DNA_windowmanager_types.h"#include "BKE_bpath.hh"#include "BKE_global.hh"#include "BKE_idtype.hh"#include "BKE_lib_id.hh"#include "BKE_lib_query.hh"#include "BKE_main.hh"#include "BKE_packedFile.hh"#include "BKE_sound.h"#include "DEG_depsgraph.hh"#include "DEG_depsgraph_query.hh"#include "BLO_read_write.hh"#include "SEQ_sound.hh"#include "SEQ_time.hh"#include "BLI_utildefines.h"Go to the source code of this file.
Macros | |
| #define | DNA_DEPRECATED_ALLOW |
Variables | |
| IDTypeInfo | IDType_ID_SO |
| #define DNA_DEPRECATED_ALLOW |
Definition at line 23 of file blenkernel/intern/sound.cc.
| void * BKE_sound_add_scene_sound | ( | Scene * | scene, |
| Sequence * | sequence, | ||
| int | startframe, | ||
| int | endframe, | ||
| int | frameskip ) |
Definition at line 1365 of file blenkernel/intern/sound.cc.
Definition at line 1373 of file blenkernel/intern/sound.cc.
Referenced by seq_update_mix_sounds(), and sequencer_swap_data_exec().
| void BKE_sound_cache | ( | bSound * | sound | ) |
Definition at line 1344 of file blenkernel/intern/sound.cc.
| void BKE_sound_create_scene | ( | Scene * | scene | ) |
Definition at line 1347 of file blenkernel/intern/sound.cc.
Referenced by BKE_sound_ensure_scene().
| void BKE_sound_delete_cache | ( | bSound * | sound | ) |
Definition at line 1345 of file blenkernel/intern/sound.cc.
| void BKE_sound_destroy_scene | ( | Scene * | scene | ) |
Definition at line 1348 of file blenkernel/intern/sound.cc.
Referenced by BKE_scene_duplicate(), and scene_free_data().
Definition at line 1486 of file blenkernel/intern/sound.cc.
References BKE_sound_load(), and bSound::cache.
Referenced by BKE_sound_evaluate().
| void BKE_sound_ensure_scene | ( | Scene * | scene | ) |
Definition at line 1472 of file blenkernel/intern/sound.cc.
References BKE_sound_create_scene().
Referenced by BKE_scene_update_sound(), SEQ_eval_sequences(), and seq_update_mix_sounds().
Definition at line 1527 of file blenkernel/intern/sound.cc.
References BKE_sound_ensure_loaded(), BKE_sound_load(), DEG_debug_print_eval(), depsgraph, bSound::id, ID_RECALC_AUDIO, ID_RECALC_SOURCE, ID::name, and ID::recalc.
| void BKE_sound_exit | ( | void | ) |
Definition at line 1342 of file blenkernel/intern/sound.cc.
Referenced by WM_exit_ex().
| void BKE_sound_exit_once | ( | void | ) |
Definition at line 1343 of file blenkernel/intern/sound.cc.
| void BKE_sound_force_device | ( | const char * | device | ) |
Definition at line 1339 of file blenkernel/intern/sound.cc.
Referenced by arg_handle_audio_disable(), arg_handle_audio_set(), background_mode_set(), and main().
| void BKE_sound_free_waveform | ( | bSound * | sound | ) |
Definition at line 1447 of file blenkernel/intern/sound.cc.
Referenced by sound_free_data().
| char ** BKE_sound_get_device_names | ( | void | ) |
Definition at line 1441 of file blenkernel/intern/sound.cc.
Definition at line 1437 of file blenkernel/intern/sound.cc.
Referenced by SEQ_add_reload_new_file().
Definition at line 1449 of file blenkernel/intern/sound.cc.
Referenced by BKE_nla_add_soundstrip(), and BKE_sound_new_file().
| void BKE_sound_init | ( | Main * | bmain | ) |
Definition at line 1341 of file blenkernel/intern/sound.cc.
Referenced by wm_init_userdef().
| void BKE_sound_init_main | ( | Main * | bmain | ) |
Definition at line 1406 of file blenkernel/intern/sound.cc.
Referenced by CTX_data_main_set().
| void BKE_sound_init_once | ( | void | ) |
Definition at line 1340 of file blenkernel/intern/sound.cc.
Referenced by main().
Definition at line 1503 of file blenkernel/intern/sound.cc.
References BKE_sound_play_scene(), BKE_sound_stop_scene(), G, sound_verify_evaluated_id(), and UNUSED_VARS.
Referenced by sound_jack_sync_callback().
| void BKE_sound_jack_sync_callback_set | ( | SoundJackSyncCallback | callback | ) |
Definition at line 1494 of file blenkernel/intern/sound.cc.
References callback, sound_jack_sync_callback(), and UNUSED_VARS.
Referenced by WM_init().
Definition at line 1346 of file blenkernel/intern/sound.cc.
Referenced by BKE_packedfile_unpack_sound(), BKE_sound_ensure_loaded(), BKE_sound_evaluate(), and sequencer_change_path_exec().
| void BKE_sound_lock | ( | void | ) |
Definition at line 1349 of file blenkernel/intern/sound.cc.
Referenced by blender::deg::SceneBackup::init_from_scene(), and sound_jack_sync_callback().
Definition at line 1379 of file blenkernel/intern/sound.cc.
Definition at line 1387 of file blenkernel/intern/sound.cc.
Referenced by SEQ_sound_update_bounds().
Definition at line 1352 of file blenkernel/intern/sound.cc.
Referenced by BKE_scene_update_sound().
| void BKE_sound_mute_scene_sound | ( | void * | handle, |
| bool | mute ) |
Definition at line 1378 of file blenkernel/intern/sound.cc.
Referenced by seq_update_muting_recursive().
Definition at line 253 of file blenkernel/intern/sound.cc.
References bSound::audio_channels, BKE_libblock_alloc(), BKE_main_blendfile_path(), BKE_sound_info_get(), BKE_sound_reset_runtime(), BLI_path_abs(), BLI_path_basename(), BLI_spin_init(), SoundInfo::channels, FILE_MAX, bSound::filepath, ID_SO, MEM_mallocN, bSound::samplerate, SoundInfo::samplerate, SoundInfo::specs, bSound::spinlock, and STRNCPY.
Referenced by BKE_sound_new_file_exists_ex(), and seq_doversion_250_sound_proxy_update_cb().
Definition at line 312 of file blenkernel/intern/sound.cc.
References BKE_sound_new_file_exists_ex().
Definition at line 282 of file blenkernel/intern/sound.cc.
References BKE_main_blendfile_path(), BKE_sound_new_file(), BLI_path_abs(), BLI_path_cmp, FILE_MAX, bSound::filepath, ListBase::first, bSound::id, ID_BLEND_PATH, id_us_plus(), ID::next, Main::sounds, and STRNCPY.
Referenced by BKE_sound_new_file_exists().
| void BKE_sound_play_scene | ( | Scene * | scene | ) |
Definition at line 1388 of file blenkernel/intern/sound.cc.
Referenced by BKE_sound_jack_scene_update(), and ED_screen_animation_play().
Definition at line 1399 of file blenkernel/intern/sound.cc.
References UNUSED_VARS.
Referenced by execute_read_sound_waveform_task().
| void BKE_sound_remove_scene_sound | ( | Scene * | scene, |
| void * | handle ) |
Definition at line 1377 of file blenkernel/intern/sound.cc.
Referenced by blender::deg::SequencerBackup::restore_to_scene(), seq_mute_sound_strips_cb(), seq_sequence_free_ex(), and sequencer_swap_data_exec().
| void BKE_sound_reset_runtime | ( | bSound * | sound | ) |
Definition at line 1480 of file blenkernel/intern/sound.cc.
References bSound::cache, and bSound::playback_handle.
Referenced by BKE_sound_new_file(), and sound_copy_data().
| void BKE_sound_reset_scene_runtime | ( | Scene * | scene | ) |
Definition at line 1464 of file blenkernel/intern/sound.cc.
Referenced by BKE_scene_duplicate(), scene_blend_read_data(), scene_copy_data(), and scene_init_data().
| void BKE_sound_reset_scene_specs | ( | Scene * | scene | ) |
Definition at line 1351 of file blenkernel/intern/sound.cc.
Referenced by RE_RenderAnim(), and sound_mixdown_exec().
| void * BKE_sound_scene_add_scene_sound | ( | Scene * | scene, |
| Sequence * | sequence, | ||
| int | startframe, | ||
| int | endframe, | ||
| int | frameskip ) |
Definition at line 1353 of file blenkernel/intern/sound.cc.
Definition at line 1361 of file blenkernel/intern/sound.cc.
Referenced by seq_dupli(), and seq_update_mix_sounds().
Definition at line 1395 of file blenkernel/intern/sound.cc.
Referenced by wm_event_do_handlers().
Definition at line 1390 of file blenkernel/intern/sound.cc.
Referenced by BKE_scene_update_sound().
Definition at line 1418 of file blenkernel/intern/sound.cc.
Referenced by seq_update_sound_properties().
| void BKE_sound_set_scene_sound_pitch_at_frame | ( | void * | handle, |
| int | frame, | ||
| float | pitch, | ||
| char | animated ) |
Definition at line 1425 of file blenkernel/intern/sound.cc.
Referenced by SEQ_retiming_sound_animation_data_set().
| void BKE_sound_set_scene_sound_pitch_constant_range | ( | void * | handle, |
| int | frame_start, | ||
| int | frame_end, | ||
| float | pitch ) |
Definition at line 1431 of file blenkernel/intern/sound.cc.
Referenced by SEQ_retiming_sound_animation_data_set().
| void BKE_sound_set_scene_sound_volume_at_frame | ( | void * | handle, |
| int | frame, | ||
| float | volume, | ||
| char | animated ) |
Definition at line 1412 of file blenkernel/intern/sound.cc.
Referenced by seq_update_sound_properties().
Definition at line 1424 of file blenkernel/intern/sound.cc.
Referenced by BKE_scene_update_sound(), and seq_update_scene_strip_sound().
| void BKE_sound_stop_scene | ( | Scene * | scene | ) |
Definition at line 1389 of file blenkernel/intern/sound.cc.
Referenced by BKE_sound_jack_scene_update(), ED_screen_animation_play(), and ED_screen_exit().
| bool BKE_sound_stream_info_get | ( | Main * | main, |
| const char * | filepath, | ||
| int | stream, | ||
| SoundStreamInfo * | sound_info ) |
Definition at line 1454 of file blenkernel/intern/sound.cc.
Definition at line 1391 of file blenkernel/intern/sound.cc.
References NAN_FLT.
Referenced by screen_animation_step_invoke(), and wm_event_do_handlers().
| void BKE_sound_unlock | ( | void | ) |
Definition at line 1350 of file blenkernel/intern/sound.cc.
Referenced by blender::deg::SceneBackup::restore_to_scene(), and sound_jack_sync_callback().
Definition at line 1411 of file blenkernel/intern/sound.cc.
Referenced by BKE_scene_update_sound().
| void BKE_sound_update_scene | ( | Depsgraph * | depsgraph, |
| Scene * | scene ) |
Definition at line 1408 of file blenkernel/intern/sound.cc.
Referenced by BKE_scene_update_sound().
| void BKE_sound_update_scene_listener | ( | Scene * | scene | ) |
Definition at line 1410 of file blenkernel/intern/sound.cc.
Referenced by BKE_scene_update_sound().
| void BKE_sound_update_scene_sound | ( | void * | handle, |
| bSound * | sound ) |
Definition at line 1409 of file blenkernel/intern/sound.cc.
Referenced by seq_update_sound_recursive(), and seq_update_sound_strips().
| void BKE_sound_update_sequence_handle | ( | void * | handle, |
| void * | sound_handle ) |
Definition at line 816 of file blenkernel/intern/sound.cc.
References UNUSED_VARS.
Referenced by seq_update_sound_modifiers().
Definition at line 1407 of file blenkernel/intern/sound.cc.
|
static |
Definition at line 167 of file blenkernel/intern/sound.cc.
References BKE_packedfile_blend_read(), BLI_spin_init(), BLO_read_data_is_undo(), bSound::cache, bSound::filepath, bSound::flags, bSound::handle, MEM_mallocN, bSound::newpackedfile, bSound::packedfile, bSound::playback_handle, SOUND_FLAGS_CACHING, SOUND_TAGS_WAVEFORM_NO_RELOAD, bSound::spinlock, and bSound::tags.
|
static |
Definition at line 144 of file blenkernel/intern/sound.cc.
References BKE_id_blend_write(), BKE_packedfile_blend_write(), BLO_write_id_struct, BLO_write_is_undo(), bSound::handle, bSound::id, ID_IS_OVERRIDE_LIBRARY, bSound::packedfile, bSound::playback_handle, bSound::spinlock, and bSound::tags.
|
static |
Definition at line 62 of file blenkernel/intern/sound.cc.
References BKE_packedfile_duplicate(), BKE_sound_reset_runtime(), BLI_spin_init(), bSound::cache, bSound::handle, bSound::ipo, MEM_mallocN, bSound::newpackedfile, bSound::packedfile, bSound::playback_handle, bSound::spinlock, and bSound::waveform.
|
static |
Definition at line 120 of file blenkernel/intern/sound.cc.
References IDCacheKey::id_session_uid, offsetof, and bSound::waveform.
|
static |
Definition at line 110 of file blenkernel/intern/sound.cc.
References BKE_LIB_FOREACHID_PROCESS_ID_NOCHECK, BKE_lib_query_foreachid_process_flags_get(), flag, IDWALK_CB_USER, IDWALK_DO_DEPRECATED_POINTERS, and bSound::ipo.
|
static |
Definition at line 132 of file blenkernel/intern/sound.cc.
References BKE_bpath_foreach_path_fixed_process(), BKE_BPATH_FOREACH_PATH_SKIP_PACKED, bSound::filepath, BPathForeachPathData::flag, and bSound::packedfile.
|
static |
Definition at line 317 of file blenkernel/intern/sound.cc.
References bSound::cache, bSound::handle, bSound::playback_handle, and UNUSED_VARS.
Referenced by sound_free_data().
|
static |
Definition at line 89 of file blenkernel/intern/sound.cc.
References BKE_packedfile_free(), BKE_sound_free_waveform(), BLI_spin_end(), MEM_freeN(), bSound::packedfile, sound_free_audio(), and bSound::spinlock.
| BLI_INLINE void sound_verify_evaluated_id | ( | const ID * | id | ) |
Definition at line 230 of file blenkernel/intern/sound.cc.
References BLI_assert, ID_TAG_COPIED_ON_EVAL, ID_TAG_COPIED_ON_EVAL_FINAL_RESULT, ID_TAG_NO_MAIN, and UNUSED_VARS_NDEBUG.
Referenced by BKE_sound_jack_scene_update().
| IDTypeInfo IDType_ID_SO |
Definition at line 194 of file blenkernel/intern/sound.cc.