Blender V5.0
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
8
10
11#include "DNA_sound_types.h"
12
13namespace blender::deg {
14
15SoundBackup::SoundBackup(const Depsgraph * /*depsgraph*/)
16{
17 reset();
18}
19
21{
22 cache = nullptr;
23 waveform = nullptr;
24 playback_handle = nullptr;
25}
26
28{
29 cache = sound->cache;
30 waveform = sound->waveform;
32
33 sound->cache = nullptr;
34 sound->waveform = nullptr;
35 sound->playback_handle = nullptr;
36}
37
39{
40 sound->cache = cache;
41 sound->waveform = waveform;
43
44 reset();
45}
46
47} // namespace blender::deg
SoundBackup(const Depsgraph *depsgraph)
void * playback_handle
void * cache
void * waveform