|
Blender V5.0
|
Go to the source code of this file.
Classes | |
| struct | SoundWaveform |
| struct | SoundInfo |
| struct | SoundStreamInfo |
Macros | |
| #define | SOUND_WAVE_SAMPLES_PER_SECOND 250 |
Typedefs | |
| typedef struct SoundWaveform | SoundWaveform |
| typedef enum eSoundChannels | eSoundChannels |
| typedef struct SoundInfo | SoundInfo |
| typedef struct SoundStreamInfo | SoundStreamInfo |
| typedef void(* | SoundJackSyncCallback) (struct Main *bmain, int mode, double time) |
Enumerations | |
| enum | eSoundChannels { SOUND_CHANNELS_INVALID = 0 , SOUND_CHANNELS_MONO = 1 , SOUND_CHANNELS_STEREO = 2 , SOUND_CHANNELS_STEREO_LFE = 3 , SOUND_CHANNELS_SURROUND4 = 4 , SOUND_CHANNELS_SURROUND5 = 5 , SOUND_CHANNELS_SURROUND51 = 6 , SOUND_CHANNELS_SURROUND61 = 7 , SOUND_CHANNELS_SURROUND71 = 8 } |
Functions | |
| void | BKE_sound_init_once () |
| void | BKE_sound_exit_once () |
| void | BKE_sound_init (struct Main *bmain) |
| void | BKE_sound_refresh_callback_bmain (struct Main *bmain) |
| void | BKE_sound_exit () |
| void | BKE_sound_force_device (const char *device) |
| struct bSound * | BKE_sound_new_file (struct Main *bmain, const char *filepath) |
| struct bSound * | BKE_sound_new_file_exists_ex (struct Main *bmain, const char *filepath, bool *r_exists) |
| struct bSound * | BKE_sound_new_file_exists (struct Main *bmain, const char *filepath) |
| void | BKE_sound_cache (struct bSound *sound) |
| void | BKE_sound_delete_cache (struct bSound *sound) |
| void | BKE_sound_reset_runtime (struct bSound *sound) |
| void | BKE_sound_load (struct Main *bmain, struct bSound *sound) |
| void | BKE_sound_ensure_loaded (struct Main *bmain, struct bSound *sound) |
| bool | BKE_sound_info_get (struct Main *main, struct bSound *sound, SoundInfo *sound_info) |
| bool | BKE_sound_stream_info_get (struct Main *main, const char *filepath, int stream, SoundStreamInfo *sound_info) |
| void | BKE_sound_reset_scene_runtime (struct Scene *scene) |
| void | BKE_sound_create_scene (struct Scene *scene) |
| void | BKE_sound_ensure_scene (struct Scene *scene) |
| void | BKE_sound_destroy_scene (struct Scene *scene) |
| void | BKE_sound_lock () |
| void | BKE_sound_unlock () |
| void | BKE_sound_reset_scene_specs (struct Scene *scene) |
| void | BKE_sound_mute_scene (struct Scene *scene, int muted) |
| void | BKE_sound_update_fps (struct Main *bmain, struct Scene *scene) |
| void | BKE_sound_update_scene_listener (struct Scene *scene) |
| void * | BKE_sound_scene_add_scene_sound (struct Scene *scene, struct Strip *sequence, int startframe, int endframe, int frameskip) |
| void * | BKE_sound_scene_add_scene_sound_defaults (struct Scene *scene, struct Strip *sequence) |
| void * | BKE_sound_add_scene_sound (struct Scene *scene, struct Strip *sequence, int startframe, int endframe, int frameskip) |
| void * | BKE_sound_add_scene_sound_defaults (struct Scene *scene, struct Strip *sequence) |
| void | BKE_sound_remove_scene_sound (struct Scene *scene, void *handle) |
| void | BKE_sound_mute_scene_sound (void *handle, bool mute) |
| void | BKE_sound_move_scene_sound (const struct Scene *scene, void *handle, int startframe, int endframe, int frameskip, double audio_offset) |
| void | BKE_sound_move_scene_sound_defaults (struct Scene *scene, struct Strip *sequence) |
| void | BKE_sound_update_scene_sound (void *handle, struct bSound *sound) |
| void | BKE_sound_update_sequence_handle (void *handle, void *sound_handle) |
| void | BKE_sound_set_scene_volume (struct Scene *scene, float volume) |
| void | BKE_sound_set_scene_sound_volume_at_frame (void *handle, int frame, float volume, char animated) |
| void | BKE_sound_set_scene_sound_pitch_at_frame (void *handle, int frame, float pitch, char animated) |
| void | BKE_sound_set_scene_sound_pitch_constant_range (void *handle, int frame_start, int frame_end, float pitch) |
| void | BKE_sound_set_scene_sound_time_stretch_at_frame (void *handle, int frame, float time_stretch, char animated) |
| void | BKE_sound_set_scene_sound_time_stretch_constant_range (void *handle, int frame_start, int frame_end, float time_stretch) |
| void | BKE_sound_set_scene_sound_pan_at_frame (void *handle, int frame, float pan, char animated) |
| void | BKE_sound_update_sequencer (struct Main *main, struct bSound *sound) |
| void | BKE_sound_play_scene (struct Scene *scene) |
| void | BKE_sound_stop_scene (struct Scene *scene) |
| void | BKE_sound_seek_scene (struct Main *bmain, struct Scene *scene) |
| double | BKE_sound_sync_scene (struct Scene *scene) |
| void | BKE_sound_free_waveform (struct bSound *sound) |
| void | BKE_sound_read_waveform (struct Main *bmain, struct bSound *sound, bool *stop) |
| void | BKE_sound_update_scene (struct Depsgraph *depsgraph, struct Scene *scene) |
| void * | BKE_sound_get_factory (void *sound) |
| float | BKE_sound_get_length (struct Main *bmain, struct bSound *sound) |
| char ** | BKE_sound_get_device_names () |
| void | BKE_sound_jack_sync_callback_set (SoundJackSyncCallback callback) |
| void | BKE_sound_jack_scene_update (struct Scene *scene, int mode, double time) |
| void | BKE_sound_evaluate (struct Depsgraph *depsgraph, struct Main *bmain, struct bSound *sound) |
| void * | BKE_sound_ensure_time_stretch_effect (void *sound_handle, void *sequence_handle, float fps) |
| #define SOUND_WAVE_SAMPLES_PER_SECOND 250 |
Definition at line 10 of file BKE_sound.h.
Referenced by blender::ed::vse::draw_seq_waveform_overlay().
Matches AUD_Channels.
| typedef struct SoundInfo SoundInfo |
Definition at line 207 of file BKE_sound.h.
| typedef struct SoundStreamInfo SoundStreamInfo |
| typedef struct SoundWaveform SoundWaveform |
| enum eSoundChannels |
Matches AUD_Channels.
Definition at line 62 of file BKE_sound.h.
| void * BKE_sound_add_scene_sound | ( | struct Scene * | scene, |
| struct Strip * | sequence, | ||
| int | startframe, | ||
| int | endframe, | ||
| int | frameskip ) |
Definition at line 1611 of file blenkernel/intern/sound.cc.
Definition at line 1619 of file blenkernel/intern/sound.cc.
Referenced by blender::ed::vse::sequencer_swap_data_exec(), and blender::seq::strip_update_mix_sounds().
| void BKE_sound_cache | ( | struct bSound * | sound | ) |
Definition at line 1589 of file blenkernel/intern/sound.cc.
| void BKE_sound_create_scene | ( | struct Scene * | scene | ) |
Definition at line 1592 of file blenkernel/intern/sound.cc.
Referenced by BKE_sound_ensure_scene().
| void BKE_sound_delete_cache | ( | struct bSound * | sound | ) |
Definition at line 1590 of file blenkernel/intern/sound.cc.
| void BKE_sound_destroy_scene | ( | struct Scene * | scene | ) |
Definition at line 1593 of file blenkernel/intern/sound.cc.
Referenced by BKE_scene_duplicate(), and scene_free_data().
Definition at line 1750 of file blenkernel/intern/sound.cc.
References BKE_sound_load(), and bSound::cache.
Referenced by BKE_sound_evaluate().
| void BKE_sound_ensure_scene | ( | struct Scene * | scene | ) |
Definition at line 1736 of file blenkernel/intern/sound.cc.
References BKE_sound_create_scene(), and Scene::sound_scene.
Referenced by BKE_scene_update_sound(), blender::seq::eval_strips(), and blender::seq::strip_update_mix_sounds().
| void * BKE_sound_ensure_time_stretch_effect | ( | void * | sound_handle, |
| void * | sequence_handle, | ||
| float | fps ) |
Definition at line 1707 of file blenkernel/intern/sound.cc.
Referenced by blender::seq::retiming_sound_animation_data_set().
| void BKE_sound_evaluate | ( | struct Depsgraph * | depsgraph, |
| struct Main * | bmain, | ||
| struct bSound * | sound ) |
Definition at line 1793 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 | ( | ) |
Definition at line 1587 of file blenkernel/intern/sound.cc.
| void BKE_sound_exit_once | ( | ) |
Definition at line 1588 of file blenkernel/intern/sound.cc.
Referenced by WM_exit_ex().
| void BKE_sound_force_device | ( | const char * | device | ) |
Definition at line 1584 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 | ( | struct bSound * | sound | ) |
Definition at line 1689 of file blenkernel/intern/sound.cc.
Referenced by sound_free_data().
| char ** BKE_sound_get_device_names | ( | ) |
Definition at line 1683 of file blenkernel/intern/sound.cc.
| void * BKE_sound_get_factory | ( | void * | sound | ) |
Definition at line 1679 of file blenkernel/intern/sound.cc.
Referenced by blender::seq::add_reload_new_file().
Get information about given sound.
Definition at line 1691 of file blenkernel/intern/sound.cc.
Referenced by BKE_nla_add_soundstrip(), and BKE_sound_new_file().
| void BKE_sound_init | ( | struct Main * | bmain | ) |
Definition at line 1586 of file blenkernel/intern/sound.cc.
Referenced by ED_reset_audio_device(), and wm_init_userdef().
| void BKE_sound_init_once | ( | ) |
Definition at line 1585 of file blenkernel/intern/sound.cc.
Referenced by main().
| void BKE_sound_jack_scene_update | ( | struct Scene * | scene, |
| int | mode, | ||
| double | time ) |
Definition at line 1767 of file blenkernel/intern/sound.cc.
References BKE_sound_play_scene(), BKE_sound_stop_scene(), G, g_state, Scene::id, Scene::playback_handle, 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 1758 of file blenkernel/intern/sound.cc.
References sound_jack_sync_callback(), and UNUSED_VARS.
Referenced by WM_init().
Definition at line 1591 of file blenkernel/intern/sound.cc.
Referenced by BKE_packedfile_unpack_sound(), BKE_sound_ensure_loaded(), BKE_sound_evaluate(), and blender::ed::vse::sequencer_change_path_exec().
| void BKE_sound_lock | ( | ) |
Definition at line 1594 of file blenkernel/intern/sound.cc.
Referenced by blender::deg::SceneBackup::init_from_scene().
| void BKE_sound_move_scene_sound | ( | const struct Scene * | scene, |
| void * | handle, | ||
| int | startframe, | ||
| int | endframe, | ||
| int | frameskip, | ||
| double | audio_offset ) |
References depsgraph, and main.
Referenced by blender::seq::sound_update_bounds(), and blender::seq::strip_update_sound_bounds_recursive_impl().
Definition at line 1633 of file blenkernel/intern/sound.cc.
Referenced by blender::seq::sound_update_bounds().
| void BKE_sound_mute_scene | ( | struct Scene * | scene, |
| int | muted ) |
Definition at line 1598 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 1624 of file blenkernel/intern/sound.cc.
Referenced by blender::seq::strip_update_muting_recursive().
Definition at line 255 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 blender::seq::strip_doversion_250_sound_proxy_update_cb().
Definition at line 314 of file blenkernel/intern/sound.cc.
References BKE_sound_new_file_exists_ex().
| struct bSound * BKE_sound_new_file_exists_ex | ( | struct Main * | bmain, |
| const char * | filepath, | ||
| bool * | r_exists ) |
Definition at line 284 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 | ( | struct Scene * | scene | ) |
Definition at line 1634 of file blenkernel/intern/sound.cc.
Referenced by BKE_sound_jack_scene_update(), and start_playback().
Definition at line 1641 of file blenkernel/intern/sound.cc.
References UNUSED_VARS.
Referenced by blender::ed::vse::execute_read_sound_waveform_task().
| void BKE_sound_refresh_callback_bmain | ( | struct Main * | bmain | ) |
Definition at line 1596 of file blenkernel/intern/sound.cc.
Referenced by CTX_data_main_set().
| void BKE_sound_remove_scene_sound | ( | struct Scene * | scene, |
| void * | handle ) |
Definition at line 1623 of file blenkernel/intern/sound.cc.
Referenced by 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 | ( | struct bSound * | sound | ) |
Definition at line 1744 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 | ( | struct Scene * | scene | ) |
Definition at line 1728 of file blenkernel/intern/sound.cc.
References Scene::playback_handle, 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().
| void BKE_sound_reset_scene_specs | ( | struct Scene * | scene | ) |
Definition at line 1597 of file blenkernel/intern/sound.cc.
Referenced by RE_RenderAnim(), and sound_mixdown_exec().
| void * BKE_sound_scene_add_scene_sound | ( | struct Scene * | scene, |
| struct Strip * | sequence, | ||
| int | startframe, | ||
| int | endframe, | ||
| int | frameskip ) |
Definition at line 1599 of file blenkernel/intern/sound.cc.
Definition at line 1607 of file blenkernel/intern/sound.cc.
Referenced by blender::seq::strip_duplicate(), and blender::seq::strip_update_mix_sounds().
Definition at line 1636 of file blenkernel/intern/sound.cc.
Referenced by BKE_scene_update_sound().
| void BKE_sound_set_scene_sound_pan_at_frame | ( | void * | handle, |
| int | frame, | ||
| float | pan, | ||
| char | animated ) |
Definition at line 1660 of file blenkernel/intern/sound.cc.
Referenced by 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 1667 of file blenkernel/intern/sound.cc.
Referenced by 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 1673 of file blenkernel/intern/sound.cc.
Referenced by blender::seq::retiming_sound_animation_data_set().
| void BKE_sound_set_scene_sound_time_stretch_at_frame | ( | void * | handle, |
| int | frame, | ||
| float | time_stretch, | ||
| char | animated ) |
Definition at line 1714 of file blenkernel/intern/sound.cc.
Referenced by blender::seq::retiming_sound_animation_data_set().
| void BKE_sound_set_scene_sound_time_stretch_constant_range | ( | void * | handle, |
| int | frame_start, | ||
| int | frame_end, | ||
| float | time_stretch ) |
Definition at line 1720 of file blenkernel/intern/sound.cc.
Referenced by 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 1654 of file blenkernel/intern/sound.cc.
Referenced by blender::seq::strip_update_sound_properties().
Definition at line 1666 of file blenkernel/intern/sound.cc.
Referenced by BKE_scene_update_sound(), and blender::seq::seq_update_scene_strip_sound().
| void BKE_sound_stop_scene | ( | struct Scene * | scene | ) |
Definition at line 1635 of file blenkernel/intern/sound.cc.
Referenced by BKE_sound_jack_scene_update(), 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 1696 of file blenkernel/intern/sound.cc.
| double BKE_sound_sync_scene | ( | struct Scene * | scene | ) |
Definition at line 1637 of file blenkernel/intern/sound.cc.
References NAN_FLT.
Referenced by screen_animation_step_invoke().
| void BKE_sound_unlock | ( | ) |
Definition at line 1595 of file blenkernel/intern/sound.cc.
Referenced by blender::deg::SceneBackup::restore_to_scene().
Definition at line 1653 of file blenkernel/intern/sound.cc.
Referenced by BKE_scene_update_sound().
| void BKE_sound_update_scene | ( | struct Depsgraph * | depsgraph, |
| struct Scene * | scene ) |
Definition at line 1650 of file blenkernel/intern/sound.cc.
Referenced by BKE_scene_update_sound().
| void BKE_sound_update_scene_listener | ( | struct Scene * | scene | ) |
Definition at line 1652 of file blenkernel/intern/sound.cc.
Referenced by BKE_scene_update_sound().
| 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 1651 of file blenkernel/intern/sound.cc.
Referenced by 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 1027 of file blenkernel/intern/sound.cc.
References UNUSED_VARS.
Referenced by blender::seq::retiming_sound_animation_data_set(), and blender::seq::strip_update_sound_modifiers().
Definition at line 1649 of file blenkernel/intern/sound.cc.