Blender
V3.3
|
#include <stdlib.h>
#include <string.h>
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_iterator.h"
#include "BLI_math.h"
#include "BLI_threads.h"
#include "BLT_translation.h"
#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.h"
#include "BKE_global.h"
#include "BKE_idtype.h"
#include "BKE_lib_id.h"
#include "BKE_main.h"
#include "BKE_packedFile.h"
#include "BKE_scene.h"
#include "BKE_sound.h"
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_query.h"
#include "BLO_read_write.h"
#include "SEQ_sequencer.h"
#include "SEQ_sound.h"
#include "SEQ_time.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 21 of file blenkernel/intern/sound.c.
void* BKE_sound_add_scene_sound | ( | Scene * | UNUSEDscene, |
Sequence * | UNUSEDsequence, | ||
int | UNUSEDstartframe, | ||
int | UNUSEDendframe, | ||
int | UNUSEDframeskip | ||
) |
Definition at line 1334 of file blenkernel/intern/sound.c.
References NULL.
Definition at line 1342 of file blenkernel/intern/sound.c.
References NULL.
Definition at line 1295 of file blenkernel/intern/sound.c.
Definition at line 1304 of file blenkernel/intern/sound.c.
Referenced by BKE_sound_ensure_scene().
Definition at line 1298 of file blenkernel/intern/sound.c.
Definition at line 1307 of file blenkernel/intern/sound.c.
Definition at line 1477 of file blenkernel/intern/sound.c.
References BKE_sound_load(), bSound::cache, and NULL.
Referenced by BKE_sound_evaluate().
Definition at line 1463 of file blenkernel/intern/sound.c.
References BKE_sound_create_scene(), NULL, scene, and Scene::sound_scene.
Referenced by BKE_scene_update_sound(), SEQ_eval_sequences(), and seq_update_seq_cb().
Definition at line 1518 of file blenkernel/intern/sound.c.
References BKE_sound_ensure_loaded(), BKE_sound_load(), DEG_debug_print_eval(), depsgraph, bSound::id, ID_RECALC_AUDIO, ID::name, and ID::recalc.
Definition at line 1289 of file blenkernel/intern/sound.c.
Referenced by WM_exit_ex().
Definition at line 1292 of file blenkernel/intern/sound.c.
void BKE_sound_force_device | ( | const char * | UNUSEDdevice | ) |
Definition at line 1280 of file blenkernel/intern/sound.c.
Definition at line 1434 of file blenkernel/intern/sound.c.
Referenced by sound_free_data().
char** BKE_sound_get_device_names | ( | void | ) |
Definition at line 1428 of file blenkernel/intern/sound.c.
Definition at line 1424 of file blenkernel/intern/sound.c.
bool BKE_sound_info_get | ( | struct Main * | UNUSEDmain, |
struct bSound * | UNUSEDsound, | ||
SoundInfo * | UNUSEDsound_info | ||
) |
Definition at line 1438 of file blenkernel/intern/sound.c.
Referenced by BKE_sound_new_file().
Definition at line 1286 of file blenkernel/intern/sound.c.
Definition at line 1387 of file blenkernel/intern/sound.c.
Definition at line 1283 of file blenkernel/intern/sound.c.
Referenced by main().
Definition at line 1494 of file blenkernel/intern/sound.c.
References BKE_sound_play_scene(), BKE_sound_stop_scene(), G, Scene::id, NULL, Scene::playback_handle, scene, sound_verify_evaluated_id(), time, and UNUSED_VARS.
Referenced by sound_jack_sync_callback().
void BKE_sound_jack_sync_callback_set | ( | SoundJackSyncCallback | callback | ) |
Definition at line 1485 of file blenkernel/intern/sound.c.
References callback, sound_jack_sync_callback(), and UNUSED_VARS.
Referenced by WM_init().
Definition at line 1301 of file blenkernel/intern/sound.c.
Referenced by BKE_sound_ensure_loaded(), and BKE_sound_evaluate().
Definition at line 1310 of file blenkernel/intern/sound.c.
Referenced by blender::deg::SceneBackup::init_from_scene(), and sound_jack_sync_callback().
void BKE_sound_move_scene_sound | ( | const Scene * | UNUSEDscene, |
void * | UNUSEDhandle, | ||
int | UNUSEDstartframe, | ||
int | UNUSEDendframe, | ||
int | UNUSEDframeskip, | ||
double | UNUSEDaudio_offset | ||
) |
Definition at line 1352 of file blenkernel/intern/sound.c.
Definition at line 1360 of file blenkernel/intern/sound.c.
Definition at line 1319 of file blenkernel/intern/sound.c.
Definition at line 1349 of file blenkernel/intern/sound.c.
Definition at line 255 of file blenkernel/intern/sound.c.
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(), BLI_strncpy(), SoundInfo::channels, FILE_MAX, bSound::filepath, ID_SO, MEM_mallocN, SoundInfo::samplerate, bSound::samplerate, SoundInfo::specs, bSound::spinlock, and str.
Referenced by BKE_sound_new_file_exists_ex(), seq_sound_proxy_update_cb(), and seqclipboard_ptr_restore().
Definition at line 312 of file blenkernel/intern/sound.c.
References BKE_sound_new_file_exists_ex(), and NULL.
Definition at line 284 of file blenkernel/intern/sound.c.
References BKE_main_blendfile_path(), BKE_sound_new_file(), BLI_path_abs(), BLI_path_cmp, BLI_strncpy(), FILE_MAX, bSound::filepath, ListBase::first, bSound::id, ID_BLEND_PATH, id_us_plus(), ID::next, Main::sounds, and str.
Referenced by BKE_sound_new_file_exists().
Definition at line 1363 of file blenkernel/intern/sound.c.
Referenced by BKE_sound_jack_scene_update().
Definition at line 1380 of file blenkernel/intern/sound.c.
References UNUSED_VARS.
Referenced by preview_startjob().
Definition at line 1346 of file blenkernel/intern/sound.c.
Definition at line 1471 of file blenkernel/intern/sound.c.
References bSound::cache, NULL, and bSound::playback_handle.
Referenced by BKE_sound_new_file(), and sound_copy_data().
Definition at line 1455 of file blenkernel/intern/sound.c.
References NULL, Scene::playback_handle, scene, Scene::sound_scene, Scene::sound_scrub_handle, and Scene::speaker_handles.
Referenced by BKE_scene_duplicate(), scene_blend_read_data(), scene_copy_data(), and scene_init_data().
Definition at line 1316 of file blenkernel/intern/sound.c.
void* BKE_sound_scene_add_scene_sound | ( | Scene * | UNUSEDscene, |
Sequence * | UNUSEDsequence, | ||
int | UNUSEDstartframe, | ||
int | UNUSEDendframe, | ||
int | UNUSEDframeskip | ||
) |
Definition at line 1322 of file blenkernel/intern/sound.c.
References NULL.
Definition at line 1330 of file blenkernel/intern/sound.c.
References NULL.
int BKE_sound_scene_playing | ( | Scene * | UNUSEDscene | ) |
Definition at line 1376 of file blenkernel/intern/sound.c.
Definition at line 1369 of file blenkernel/intern/sound.c.
void BKE_sound_set_cfra | ( | int | UNUSEDcfra | ) |
Definition at line 1390 of file blenkernel/intern/sound.c.
Definition at line 1413 of file blenkernel/intern/sound.c.
void BKE_sound_set_scene_sound_pitch | ( | void * | UNUSEDhandle, |
float | UNUSEDpitch, | ||
char | UNUSEDanimated | ||
) |
Definition at line 1419 of file blenkernel/intern/sound.c.
void BKE_sound_set_scene_sound_volume | ( | void * | UNUSEDhandle, |
float | UNUSEDvolume, | ||
char | UNUSEDanimated | ||
) |
Definition at line 1408 of file blenkernel/intern/sound.c.
Definition at line 1416 of file blenkernel/intern/sound.c.
Definition at line 1366 of file blenkernel/intern/sound.c.
Referenced by BKE_sound_jack_scene_update().
bool BKE_sound_stream_info_get | ( | struct Main * | UNUSEDmain, |
const char * | UNUSEDfilepath, | ||
int | UNUSEDstream, | ||
SoundStreamInfo * | UNUSEDsound_info | ||
) |
Definition at line 1445 of file blenkernel/intern/sound.c.
Definition at line 1372 of file blenkernel/intern/sound.c.
References NAN_FLT.
Definition at line 1313 of file blenkernel/intern/sound.c.
Referenced by blender::deg::SceneBackup::restore_to_scene(), and sound_jack_sync_callback().
Definition at line 1405 of file blenkernel/intern/sound.c.
Definition at line 1396 of file blenkernel/intern/sound.c.
Definition at line 1402 of file blenkernel/intern/sound.c.
Definition at line 1399 of file blenkernel/intern/sound.c.
Definition at line 1393 of file blenkernel/intern/sound.c.
|
static |
Definition at line 155 of file blenkernel/intern/sound.c.
References BKE_packedfile_blend_read(), BLI_spin_init(), BLO_read_data_is_undo(), bSound::cache, bSound::flags, bSound::handle, MEM_mallocN, bSound::newpackedfile, NULL, bSound::packedfile, bSound::playback_handle, SOUND_FLAGS_CACHING, SOUND_TAGS_WAVEFORM_LOADING, SOUND_TAGS_WAVEFORM_NO_RELOAD, bSound::spinlock, and bSound::tags.
|
static |
Definition at line 189 of file blenkernel/intern/sound.c.
References BLO_expand, and bSound::ipo.
|
static |
Definition at line 182 of file blenkernel/intern/sound.c.
References BLO_read_id_address, bSound::id, bSound::ipo, and ID::lib.
|
static |
Definition at line 132 of file blenkernel/intern/sound.c.
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, NULL, bSound::packedfile, bSound::playback_handle, bSound::spinlock, and bSound::tags.
|
static |
Definition at line 61 of file blenkernel/intern/sound.c.
References BKE_packedfile_duplicate(), BKE_sound_reset_runtime(), BLI_spin_init(), bSound::cache, bSound::handle, bSound::ipo, MEM_mallocN, bSound::newpackedfile, NULL, bSound::packedfile, bSound::playback_handle, bSound::spinlock, and bSound::waveform.
|
static |
Definition at line 108 of file blenkernel/intern/sound.c.
References IDCacheKey::id_session_uuid, user_data, and bSound::waveform.
|
static |
Definition at line 121 of file blenkernel/intern/sound.c.
References BKE_bpath_foreach_path_fixed_process(), BKE_BPATH_FOREACH_PATH_SKIP_PACKED, bSound::filepath, BPathForeachPathData::flag, NULL, and bSound::packedfile.
Definition at line 317 of file blenkernel/intern/sound.c.
References bSound::cache, bSound::handle, NULL, bSound::playback_handle, and UNUSED_VARS.
Referenced by sound_free_data().
Definition at line 87 of file blenkernel/intern/sound.c.
References BKE_packedfile_free(), BKE_sound_free_waveform(), BLI_spin_end(), MEM_freeN, NULL, bSound::packedfile, sound_free_audio(), and bSound::spinlock.
BLI_INLINE void sound_verify_evaluated_id | ( | const ID * | id | ) |
Definition at line 232 of file blenkernel/intern/sound.c.
References BLI_assert, id, LIB_TAG_COPIED_ON_WRITE, LIB_TAG_COPIED_ON_WRITE_EVAL_RESULT, LIB_TAG_NO_MAIN, ID::tag, and UNUSED_VARS_NDEBUG.
Referenced by BKE_sound_jack_scene_update().
IDTypeInfo IDType_ID_SO |
Definition at line 195 of file blenkernel/intern/sound.c.