|
Blender V4.5
|
#include <chrono>#include <condition_variable>#include <cstdlib>#include <cstring>#include <mutex>#include <optional>#include <thread>#include "MEM_guardedalloc.h"#include "BLI_build_config.h"#include "BLI_listbase.h"#include "BLI_math_base.h"#include "BLI_math_rotation.h"#include "BLI_path_utils.hh"#include "BLI_string.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_userdef_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_library.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 "CLG_log.h"#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 30 of file blenkernel/intern/sound.cc.
| void * BKE_sound_add_scene_sound | ( | Scene * | scene, |
| Strip * | sequence, | ||
| int | startframe, | ||
| int | endframe, | ||
| int | frameskip ) |
Definition at line 1552 of file blenkernel/intern/sound.cc.
References BKE_sound_add_scene_sound().
Referenced by BKE_sound_add_scene_sound().
Definition at line 1560 of file blenkernel/intern/sound.cc.
References BKE_sound_add_scene_sound_defaults().
Referenced by BKE_sound_add_scene_sound_defaults(), blender::ed::vse::sequencer_swap_data_exec(), and blender::seq::strip_update_mix_sounds().
| void BKE_sound_cache | ( | bSound * | sound | ) |
Definition at line 1530 of file blenkernel/intern/sound.cc.
References BKE_sound_cache().
Referenced by BKE_sound_cache().
| void BKE_sound_create_scene | ( | Scene * | scene | ) |
Definition at line 1533 of file blenkernel/intern/sound.cc.
References BKE_sound_create_scene().
Referenced by BKE_sound_create_scene(), and BKE_sound_ensure_scene().
| void BKE_sound_delete_cache | ( | bSound * | sound | ) |
Definition at line 1531 of file blenkernel/intern/sound.cc.
References BKE_sound_delete_cache().
Referenced by BKE_sound_delete_cache().
| void BKE_sound_destroy_scene | ( | Scene * | scene | ) |
Definition at line 1534 of file blenkernel/intern/sound.cc.
References BKE_sound_destroy_scene().
Referenced by BKE_scene_duplicate(), BKE_sound_destroy_scene(), and scene_free_data().
Definition at line 1668 of file blenkernel/intern/sound.cc.
References BKE_sound_ensure_loaded(), BKE_sound_load(), and bSound::cache.
Referenced by BKE_sound_ensure_loaded(), and BKE_sound_evaluate().
| void BKE_sound_ensure_scene | ( | Scene * | scene | ) |
Definition at line 1654 of file blenkernel/intern/sound.cc.
References BKE_sound_create_scene(), BKE_sound_ensure_scene(), and Scene::sound_scene.
Referenced by BKE_scene_update_sound(), BKE_sound_ensure_scene(), blender::seq::eval_strips(), and blender::seq::strip_update_mix_sounds().
Definition at line 1711 of file blenkernel/intern/sound.cc.
References BKE_sound_ensure_loaded(), BKE_sound_evaluate(), BKE_sound_load(), DEG_debug_print_eval(), bSound::id, ID_RECALC_AUDIO, ID_RECALC_SOURCE, ID::name, and ID::recalc.
Referenced by BKE_sound_evaluate().
| void BKE_sound_exit | ( | ) |
Definition at line 1528 of file blenkernel/intern/sound.cc.
References BKE_sound_exit().
Referenced by BKE_sound_exit().
| void BKE_sound_exit_once | ( | ) |
Definition at line 1529 of file blenkernel/intern/sound.cc.
References BKE_sound_exit_once().
Referenced by BKE_sound_exit_once(), and WM_exit_ex().
| void BKE_sound_force_device | ( | const char * | device | ) |
Definition at line 1525 of file blenkernel/intern/sound.cc.
References BKE_sound_force_device().
Referenced by arg_handle_audio_disable(), arg_handle_audio_set(), background_mode_set(), BKE_sound_force_device(), and main().
| void BKE_sound_free_waveform | ( | bSound * | sound | ) |
Definition at line 1629 of file blenkernel/intern/sound.cc.
References BKE_sound_free_waveform().
Referenced by BKE_sound_free_waveform(), BKE_sound_move_scene_sound(), and sound_free_data().
| char ** BKE_sound_get_device_names | ( | ) |
Definition at line 1623 of file blenkernel/intern/sound.cc.
References BKE_sound_get_device_names().
Referenced by BKE_sound_get_device_names(), and BKE_sound_get_factory().
Definition at line 1619 of file blenkernel/intern/sound.cc.
References BKE_sound_get_length().
Referenced by blender::seq::add_reload_new_file(), BKE_sound_get_factory(), and BKE_sound_get_length().
Get information about given sound.
Definition at line 1631 of file blenkernel/intern/sound.cc.
References BKE_sound_info_get().
Referenced by BKE_nla_add_soundstrip(), BKE_sound_info_get(), and BKE_sound_new_file().
| void BKE_sound_init | ( | Main * | bmain | ) |
Definition at line 1527 of file blenkernel/intern/sound.cc.
References BKE_sound_init().
Referenced by BKE_sound_init(), ED_reset_audio_device(), and wm_init_userdef().
| void BKE_sound_init_once | ( | ) |
Definition at line 1526 of file blenkernel/intern/sound.cc.
References BKE_sound_init_once().
Referenced by BKE_sound_init_once(), and main().
| void BKE_sound_jack_scene_update | ( | Scene * | scene, |
| int | mode, | ||
| double | time ) |
Definition at line 1685 of file blenkernel/intern/sound.cc.
References BKE_sound_jack_scene_update(), BKE_sound_play_scene(), BKE_sound_stop_scene(), G, Scene::id, Scene::playback_handle, sound_verify_evaluated_id(), and UNUSED_VARS.
Referenced by BKE_sound_jack_scene_update(), and sound_jack_sync_callback().
| void BKE_sound_jack_sync_callback_set | ( | SoundJackSyncCallback | callback | ) |
Definition at line 1676 of file blenkernel/intern/sound.cc.
References BKE_sound_jack_sync_callback_set(), and UNUSED_VARS.
Referenced by BKE_sound_jack_sync_callback_set(), and WM_init().
Definition at line 1532 of file blenkernel/intern/sound.cc.
References BKE_sound_load().
Referenced by BKE_packedfile_unpack_sound(), BKE_sound_ensure_loaded(), BKE_sound_evaluate(), BKE_sound_load(), and blender::ed::vse::sequencer_change_path_exec().
| void BKE_sound_lock | ( | ) |
Definition at line 1535 of file blenkernel/intern/sound.cc.
References BKE_sound_lock().
Referenced by BKE_sound_lock(), and blender::deg::SceneBackup::init_from_scene().
| void BKE_sound_move_scene_sound | ( | const Scene * | , |
| void * | , | ||
| int | , | ||
| int | , | ||
| int | , | ||
| double | ) |
Definition at line 1566 of file blenkernel/intern/sound.cc.
References BKE_sound_move_scene_sound().
Definition at line 1574 of file blenkernel/intern/sound.cc.
References BKE_sound_move_scene_sound_defaults().
Referenced by BKE_sound_move_scene_sound(), BKE_sound_move_scene_sound_defaults(), and blender::seq::sound_update_bounds().
| void BKE_sound_mute_scene | ( | Scene * | scene, |
| int | muted ) |
Definition at line 1539 of file blenkernel/intern/sound.cc.
References BKE_sound_mute_scene().
Referenced by BKE_scene_update_sound(), and BKE_sound_mute_scene().
| void BKE_sound_mute_scene_sound | ( | void * | handle, |
| bool | mute ) |
Definition at line 1565 of file blenkernel/intern/sound.cc.
References BKE_sound_mute_scene_sound().
Referenced by BKE_sound_mute_scene_sound(), and blender::seq::strip_update_muting_recursive().
Definition at line 264 of file blenkernel/intern/sound.cc.
References bSound::audio_channels, BKE_libblock_alloc(), BKE_main_blendfile_path(), BKE_sound_info_get(), BKE_sound_new_file(), BKE_sound_reset_runtime(), BLI_path_abs(), BLI_path_basename(), BLI_spin_init(), FILE_MAX, bSound::filepath, ID_SO, MEM_mallocN(), bSound::samplerate, SoundInfo::specs, bSound::spinlock, and STRNCPY().
Referenced by BKE_sound_new_file(), BKE_sound_new_file_exists_ex(), and blender::seq::strip_doversion_250_sound_proxy_update_cb().
Definition at line 323 of file blenkernel/intern/sound.cc.
References BKE_sound_new_file_exists(), and BKE_sound_new_file_exists_ex().
Referenced by BKE_sound_new_file_exists().
Definition at line 293 of file blenkernel/intern/sound.cc.
References BKE_main_blendfile_path(), BKE_sound_new_file(), BKE_sound_new_file_exists_ex(), 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(), and BKE_sound_new_file_exists_ex().
| void BKE_sound_play_scene | ( | Scene * | scene | ) |
Definition at line 1575 of file blenkernel/intern/sound.cc.
References BKE_sound_play_scene().
Referenced by BKE_sound_jack_scene_update(), BKE_sound_move_scene_sound(), BKE_sound_play_scene(), and start_playback().
Definition at line 1582 of file blenkernel/intern/sound.cc.
References BKE_sound_read_waveform(), stop, and UNUSED_VARS.
Referenced by BKE_sound_move_scene_sound(), BKE_sound_read_waveform(), and blender::ed::vse::execute_read_sound_waveform_task().
| void BKE_sound_refresh_callback_bmain | ( | Main * | bmain | ) |
Definition at line 1537 of file blenkernel/intern/sound.cc.
References BKE_sound_refresh_callback_bmain().
Referenced by BKE_sound_refresh_callback_bmain(), and CTX_data_main_set().
| void BKE_sound_remove_scene_sound | ( | Scene * | scene, |
| void * | handle ) |
Definition at line 1564 of file blenkernel/intern/sound.cc.
References BKE_sound_remove_scene_sound().
Referenced by BKE_sound_remove_scene_sound(), blender::deg::SequencerBackup::restore_to_scene(), blender::seq::seq_mute_sound_strips_cb(), blender::seq::seq_strip_free_ex(), and blender::ed::vse::sequencer_swap_data_exec().
| void BKE_sound_reset_runtime | ( | bSound * | sound | ) |
Definition at line 1662 of file blenkernel/intern/sound.cc.
References BKE_sound_reset_runtime(), bSound::cache, and bSound::playback_handle.
Referenced by BKE_sound_new_file(), BKE_sound_reset_runtime(), and sound_copy_data().
| void BKE_sound_reset_scene_runtime | ( | Scene * | scene | ) |
Definition at line 1646 of file blenkernel/intern/sound.cc.
References BKE_sound_reset_scene_runtime(), Scene::playback_handle, Scene::sound_scene, Scene::sound_scrub_handle, and Scene::speaker_handles.
Referenced by BKE_scene_duplicate(), BKE_sound_reset_scene_runtime(), scene_blend_read_data(), scene_copy_data(), and scene_init_data().
| void BKE_sound_reset_scene_specs | ( | Scene * | scene | ) |
Definition at line 1538 of file blenkernel/intern/sound.cc.
References BKE_sound_reset_scene_specs().
Referenced by BKE_sound_reset_scene_specs(), RE_RenderAnim(), and sound_mixdown_exec().
| void * BKE_sound_scene_add_scene_sound | ( | Scene * | scene, |
| Strip * | sequence, | ||
| int | startframe, | ||
| int | endframe, | ||
| int | frameskip ) |
Definition at line 1540 of file blenkernel/intern/sound.cc.
References BKE_sound_scene_add_scene_sound().
Referenced by BKE_sound_scene_add_scene_sound().
Definition at line 1548 of file blenkernel/intern/sound.cc.
References BKE_sound_scene_add_scene_sound_defaults().
Referenced by BKE_sound_scene_add_scene_sound_defaults(), blender::seq::strip_duplicate(), and blender::seq::strip_update_mix_sounds().
Definition at line 1577 of file blenkernel/intern/sound.cc.
References BKE_sound_seek_scene().
Referenced by BKE_scene_update_sound(), BKE_sound_move_scene_sound(), and BKE_sound_seek_scene().
| void BKE_sound_set_scene_sound_pan_at_frame | ( | void * | handle, |
| int | frame, | ||
| float | pan, | ||
| char | animated ) |
Definition at line 1600 of file blenkernel/intern/sound.cc.
References BKE_sound_set_scene_sound_pan_at_frame().
Referenced by BKE_sound_move_scene_sound(), BKE_sound_set_scene_sound_pan_at_frame(), and blender::seq::strip_update_sound_properties().
| void BKE_sound_set_scene_sound_pitch_at_frame | ( | void * | handle, |
| int | frame, | ||
| float | pitch, | ||
| char | animated ) |
Definition at line 1607 of file blenkernel/intern/sound.cc.
References BKE_sound_set_scene_sound_pitch_at_frame().
Referenced by BKE_sound_move_scene_sound(), BKE_sound_set_scene_sound_pitch_at_frame(), and blender::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 1613 of file blenkernel/intern/sound.cc.
References BKE_sound_set_scene_sound_pitch_constant_range().
Referenced by BKE_sound_move_scene_sound(), BKE_sound_set_scene_sound_pitch_constant_range(), and blender::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 1594 of file blenkernel/intern/sound.cc.
References BKE_sound_set_scene_sound_volume_at_frame().
Referenced by BKE_sound_move_scene_sound(), BKE_sound_set_scene_sound_volume_at_frame(), and blender::seq::strip_update_sound_properties().
| void BKE_sound_set_scene_volume | ( | Scene * | scene, |
| float | volume ) |
Definition at line 1606 of file blenkernel/intern/sound.cc.
References BKE_sound_set_scene_volume().
Referenced by BKE_scene_update_sound(), BKE_sound_move_scene_sound(), BKE_sound_set_scene_volume(), and blender::seq::seq_update_scene_strip_sound().
| void BKE_sound_stop_scene | ( | Scene * | scene | ) |
Definition at line 1576 of file blenkernel/intern/sound.cc.
References BKE_sound_stop_scene().
Referenced by BKE_sound_jack_scene_update(), BKE_sound_move_scene_sound(), BKE_sound_stop_scene(), ED_screen_exit(), and stop_playback().
| bool BKE_sound_stream_info_get | ( | struct Main * | main, |
| const char * | filepath, | ||
| int | stream, | ||
| SoundStreamInfo * | sound_info ) |
Get information about given sound.
Definition at line 1636 of file blenkernel/intern/sound.cc.
References BKE_sound_stream_info_get().
Referenced by BKE_sound_stream_info_get().
| double BKE_sound_sync_scene | ( | Scene * | scene | ) |
Definition at line 1578 of file blenkernel/intern/sound.cc.
References BKE_sound_sync_scene(), and NAN_FLT.
Referenced by BKE_sound_move_scene_sound(), BKE_sound_sync_scene(), and screen_animation_step_invoke().
| void BKE_sound_unlock | ( | ) |
Definition at line 1536 of file blenkernel/intern/sound.cc.
References BKE_sound_unlock().
Referenced by BKE_sound_unlock(), and blender::deg::SceneBackup::restore_to_scene().
Definition at line 1593 of file blenkernel/intern/sound.cc.
References BKE_sound_update_fps().
Referenced by BKE_scene_update_sound(), and BKE_sound_update_fps().
| void BKE_sound_update_scene | ( | Depsgraph * | depsgraph, |
| Scene * | scene ) |
Definition at line 1590 of file blenkernel/intern/sound.cc.
References BKE_sound_update_scene().
Referenced by BKE_scene_update_sound(), BKE_sound_move_scene_sound(), and BKE_sound_update_scene().
| void BKE_sound_update_scene_listener | ( | Scene * | scene | ) |
Definition at line 1592 of file blenkernel/intern/sound.cc.
References BKE_sound_update_scene_listener().
Referenced by BKE_scene_update_sound(), and BKE_sound_update_scene_listener().
| void BKE_sound_update_scene_sound | ( | void * | handle, |
| struct bSound * | sound ) |
Join the Sequence with the structure in Audaspace, the second parameter is a bSound.
Definition at line 1591 of file blenkernel/intern/sound.cc.
References BKE_sound_update_scene_sound().
Referenced by BKE_sound_move_scene_sound(), BKE_sound_update_scene_sound(), blender::seq::seq_update_sound_strips(), and blender::seq::strip_update_sound_recursive().
| void BKE_sound_update_sequence_handle | ( | void * | handle, |
| void * | sound_handle ) |
Join the Sequence with the structure in Audaspace,
| sound_handle | the AUD_Sound created in Audaspace previously. |
Definition at line 1005 of file blenkernel/intern/sound.cc.
References BKE_sound_update_sequence_handle(), and UNUSED_VARS.
Referenced by BKE_sound_move_scene_sound(), BKE_sound_update_sequence_handle(), and blender::seq::strip_update_sound_modifiers().
Definition at line 1589 of file blenkernel/intern/sound.cc.
References BKE_sound_update_sequencer().
Referenced by BKE_sound_move_scene_sound(), and BKE_sound_update_sequencer().
|
static |
Definition at line 178 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_blend_read_data(), SOUND_FLAGS_CACHING, SOUND_TAGS_WAVEFORM_LOADING, SOUND_TAGS_WAVEFORM_NO_RELOAD, bSound::spinlock, and bSound::tags.
Referenced by sound_blend_read_data().
|
static |
Definition at line 155 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, sound_blend_write(), bSound::spinlock, and bSound::tags.
Referenced by sound_blend_write().
|
static |
Definition at line 72 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, sound_copy_data(), bSound::spinlock, and bSound::waveform.
Referenced by sound_copy_data().
|
static |
Definition at line 131 of file blenkernel/intern/sound.cc.
References IDCacheKey::id_session_uid, IDCacheKey::identifier, offsetof, sound_foreach_cache(), and bSound::waveform.
Referenced by sound_foreach_cache().
|
static |
Definition at line 121 of file blenkernel/intern/sound.cc.
References BKE_LIB_FOREACHID_PROCESS_ID_NOCHECK, BKE_lib_query_foreachid_process_flags_get(), data, IDWALK_CB_USER, IDWALK_DO_DEPRECATED_POINTERS, bSound::ipo, and sound_foreach_id().
Referenced by sound_foreach_id().
|
static |
Definition at line 143 of file blenkernel/intern/sound.cc.
References BKE_bpath_foreach_path_fixed_process(), BKE_BPATH_FOREACH_PATH_SKIP_PACKED, bSound::filepath, BPathForeachPathData::flag, bSound::packedfile, and sound_foreach_path().
Referenced by sound_foreach_path().
|
static |
Definition at line 328 of file blenkernel/intern/sound.cc.
References bSound::cache, bSound::handle, bSound::playback_handle, sound_free_audio(), and UNUSED_VARS.
Referenced by sound_free_audio(), and sound_free_data().
|
static |
Definition at line 99 of file blenkernel/intern/sound.cc.
References BKE_packedfile_free(), BKE_sound_free_waveform(), BLI_spin_end(), MEM_freeN(), bSound::packedfile, sound_free_audio(), sound_free_data(), and bSound::spinlock.
Referenced by sound_free_data().
| BLI_INLINE void sound_verify_evaluated_id | ( | const ID * | id | ) |
Definition at line 241 of file blenkernel/intern/sound.cc.
References BLI_assert, BLI_INLINE, ID_TAG_COPIED_ON_EVAL, ID_TAG_COPIED_ON_EVAL_FINAL_RESULT, ID_TAG_NO_MAIN, sound_verify_evaluated_id(), ID::tag, and UNUSED_VARS_NDEBUG.
Referenced by BKE_sound_jack_scene_update(), and sound_verify_evaluated_id().
| IDTypeInfo IDType_ID_SO |
Definition at line 205 of file blenkernel/intern/sound.cc.