Blender
V4.3
source
blender
depsgraph
intern
eval
deg_eval_runtime_backup_sound.cc
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2019 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
9
#include "
intern/eval/deg_eval_runtime_backup_sound.h
"
10
11
#include "
BLI_utildefines.h
"
12
13
#include "
DNA_sound_types.h
"
14
15
namespace
blender::deg
{
16
17
SoundBackup::SoundBackup
(
const
Depsgraph
*
/*depsgraph*/
)
18
{
19
reset
();
20
}
21
22
void
SoundBackup::reset
()
23
{
24
cache
=
nullptr
;
25
waveform
=
nullptr
;
26
playback_handle
=
nullptr
;
27
}
28
29
void
SoundBackup::init_from_sound
(
bSound
*sound)
30
{
31
cache
= sound->
cache
;
32
waveform
= sound->
waveform
;
33
playback_handle
= sound->
playback_handle
;
34
35
sound->
cache
=
nullptr
;
36
sound->
waveform
=
nullptr
;
37
sound->
playback_handle
=
nullptr
;
38
}
39
40
void
SoundBackup::restore_to_sound
(
bSound
*sound)
41
{
42
sound->
cache
=
cache
;
43
sound->
waveform
=
waveform
;
44
sound->
playback_handle
=
playback_handle
;
45
46
reset
();
47
}
48
49
}
// namespace blender::deg
BLI_utildefines.h
DNA_sound_types.h
blender::deg::SoundBackup::waveform
void * waveform
Definition
deg_eval_runtime_backup_sound.h:28
blender::deg::SoundBackup::SoundBackup
SoundBackup(const Depsgraph *depsgraph)
Definition
deg_eval_runtime_backup_sound.cc:17
blender::deg::SoundBackup::init_from_sound
void init_from_sound(bSound *sound)
Definition
deg_eval_runtime_backup_sound.cc:29
blender::deg::SoundBackup::restore_to_sound
void restore_to_sound(bSound *sound)
Definition
deg_eval_runtime_backup_sound.cc:40
blender::deg::SoundBackup::reset
void reset()
Definition
deg_eval_runtime_backup_sound.cc:22
blender::deg::SoundBackup::cache
void * cache
Definition
deg_eval_runtime_backup_sound.h:27
blender::deg::SoundBackup::playback_handle
void * playback_handle
Definition
deg_eval_runtime_backup_sound.h:29
deg_eval_runtime_backup_sound.h
blender::deg
Definition
DEG_depsgraph_light_linking.hh:18
bSound
Definition
DNA_sound_types.h:16
bSound::playback_handle
void * playback_handle
Definition
DNA_sound_types.h:71
bSound::cache
void * cache
Definition
DNA_sound_types.h:60
bSound::waveform
void * waveform
Definition
DNA_sound_types.h:65
blender::deg::Depsgraph
Definition
depsgraph.hh:47
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0