Blender
V5.3
source
blender
depsgraph
intern
eval
deg_eval_runtime_backup_sound.h
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2019 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9
#pragma once
10
11
#include "
BKE_sound.hh
"
12
13
namespace
blender
{
14
15
struct
bSound
;
16
17
namespace
deg
{
18
19
struct
Depsgraph
;
20
21
/* Backup of sound datablocks runtime data. */
22
class
SoundBackup
{
23
public
:
24
SoundBackup
(
const
Depsgraph
*depsgraph);
25
26
void
reset
();
27
28
void
init_from_sound
(
bSound
*sound);
29
void
restore_to_sound
(
bSound
*sound);
30
31
AUD_Sound
cache
;
32
AUD_Sound
playback_handle
;
33
Vector<float>
*
waveform
;
34
};
35
36
}
// namespace deg
37
}
// namespace blender
BKE_sound.hh
AUD_Sound
std::shared_ptr< void > AUD_Sound
Definition
BKE_sound_types.hh:35
blender::Vector
Definition
BLI_vector.hh:76
blender::deg::SoundBackup::waveform
Vector< float > * waveform
Definition
deg_eval_runtime_backup_sound.h:33
blender::deg::SoundBackup::SoundBackup
SoundBackup(const Depsgraph *depsgraph)
Definition
deg_eval_runtime_backup_sound.cc:15
blender::deg::SoundBackup::init_from_sound
void init_from_sound(bSound *sound)
Definition
deg_eval_runtime_backup_sound.cc:27
blender::deg::SoundBackup::playback_handle
AUD_Sound playback_handle
Definition
deg_eval_runtime_backup_sound.h:32
blender::deg::SoundBackup::cache
AUD_Sound cache
Definition
deg_eval_runtime_backup_sound.h:31
blender::deg::SoundBackup::restore_to_sound
void restore_to_sound(bSound *sound)
Definition
deg_eval_runtime_backup_sound.cc:33
blender::deg::SoundBackup::reset
void reset()
Definition
deg_eval_runtime_backup_sound.cc:20
blender::deg
Definition
DEG_depsgraph_light_linking.hh:15
blender
BMesh Iterators.
Definition
ANIM_action.hh:30
blender::bSound
Definition
DNA_sound_types.h:33
blender::deg::Depsgraph
Definition
depsgraph.hh:50
Generated on
for Blender by
doxygen
1.18.0