Blender  V3.3
deg_eval_runtime_backup_sound.cc
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2019 Blender Foundation. All rights reserved. */
3 
9 
10 #include "BLI_utildefines.h"
11 
12 #include "DNA_sound_types.h"
13 
14 namespace blender::deg {
15 
16 SoundBackup::SoundBackup(const Depsgraph * /*depsgraph*/)
17 {
18  reset();
19 }
20 
22 {
23  cache = nullptr;
24  waveform = nullptr;
25  playback_handle = nullptr;
26 }
27 
29 {
30  cache = sound->cache;
31  waveform = sound->waveform;
33 
34  sound->cache = nullptr;
35  sound->waveform = nullptr;
36  sound->playback_handle = nullptr;
37 }
38 
40 {
41  sound->cache = cache;
42  sound->waveform = waveform;
44 
45  reset();
46 }
47 
48 } // namespace blender::deg
SoundBackup(const Depsgraph *depsgraph)
void * playback_handle
void * cache
void * waveform