diff options
author | Jörg Müller <nexyon@gmail.com> | 2020-03-28 11:14:07 +0300 |
---|---|---|
committer | Jörg Müller <nexyon@gmail.com> | 2020-03-28 11:14:07 +0300 |
commit | bdec24b40d69e875f63657716becc5dd573536f3 (patch) | |
tree | 3f7f0077c4f9cf5ff999e7e01f1ae0f7a9036128 /source/blender | |
parent | 10bd3fb4cb186f927d8839d2da28eeb90d6722f3 (diff) |
Cleanup: Removing unused parameter.
Diffstat (limited to 'source/blender')
4 files changed, 10 insertions, 10 deletions
diff --git a/source/blender/blenkernel/BKE_sound.h b/source/blender/blenkernel/BKE_sound.h index af50e61eb2d..847adf56a93 100644 --- a/source/blender/blenkernel/BKE_sound.h +++ b/source/blender/blenkernel/BKE_sound.h @@ -117,8 +117,8 @@ void BKE_sound_ensure_scene(struct Scene *scene); void BKE_sound_destroy_scene(struct Scene *scene); -void BKE_sound_lock_scene(struct Scene *scene); -void BKE_sound_unlock_scene(struct Scene *scene); +void BKE_sound_lock(); +void BKE_sound_unlock(); void BKE_sound_reset_scene_specs(struct Scene *scene); diff --git a/source/blender/blenkernel/intern/sound.c b/source/blender/blenkernel/intern/sound.c index f0545ae56bd..a06f73b2003 100644 --- a/source/blender/blenkernel/intern/sound.c +++ b/source/blender/blenkernel/intern/sound.c @@ -550,12 +550,12 @@ void BKE_sound_destroy_scene(Scene *scene) } } -void BKE_sound_lock_scene(struct Scene *UNUSED(scene)) +void BKE_sound_lock() { AUD_Device_lock(sound_device); } -void BKE_sound_unlock_scene(struct Scene *UNUSED(scene)) +void BKE_sound_unlock() { AUD_Device_unlock(sound_device); } @@ -1161,10 +1161,10 @@ void BKE_sound_create_scene(Scene *UNUSED(scene)) void BKE_sound_destroy_scene(Scene *UNUSED(scene)) { } -void BKE_sound_lock_scene(Scene *UNUSED(scene)) +void BKE_sound_lock() { } -void BKE_sound_unlock_scene(Scene *UNUSED(scene)) +void BKE_sound_unlock() { } void BKE_sound_reset_scene_specs(Scene *UNUSED(scene)) diff --git a/source/blender/depsgraph/intern/eval/deg_eval_runtime_backup_scene.cc b/source/blender/depsgraph/intern/eval/deg_eval_runtime_backup_scene.cc index 36d0138f697..32b2d0b93c1 100644 --- a/source/blender/depsgraph/intern/eval/deg_eval_runtime_backup_scene.cc +++ b/source/blender/depsgraph/intern/eval/deg_eval_runtime_backup_scene.cc @@ -46,7 +46,7 @@ void SceneBackup::reset() void SceneBackup::init_from_scene(Scene *scene) { - BKE_sound_lock_scene(scene); + BKE_sound_lock(); sound_scene = scene->sound_scene; playback_handle = scene->playback_handle; @@ -80,7 +80,7 @@ void SceneBackup::restore_to_scene(Scene *scene) sequencer_backup.restore_to_scene(scene); - BKE_sound_unlock_scene(scene); + BKE_sound_unlock(); reset(); } diff --git a/source/blender/windowmanager/intern/wm_init_exit.c b/source/blender/windowmanager/intern/wm_init_exit.c index 64cde724401..17d697840a0 100644 --- a/source/blender/windowmanager/intern/wm_init_exit.c +++ b/source/blender/windowmanager/intern/wm_init_exit.c @@ -217,10 +217,10 @@ static void sound_jack_sync_callback(Main *bmain, int mode, float time) if (depsgraph == NULL) { continue; } - BKE_sound_lock_scene(scene); + BKE_sound_lock(); Scene *scene_eval = DEG_get_evaluated_scene(depsgraph); BKE_sound_jack_scene_update(scene_eval, mode, time); - BKE_sound_unlock_scene(scene); + BKE_sound_unlock(); } } |