Blender V4.3
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
10
11#include "BLI_utildefines.h"
12
13#include "DNA_sound_types.h"
14
15namespace blender::deg {
16
17SoundBackup::SoundBackup(const Depsgraph * /*depsgraph*/)
18{
19 reset();
20}
21
23{
24 cache = nullptr;
25 waveform = nullptr;
26 playback_handle = nullptr;
27}
28
30{
31 cache = sound->cache;
32 waveform = sound->waveform;
34
35 sound->cache = nullptr;
36 sound->waveform = nullptr;
37 sound->playback_handle = nullptr;
38}
39
41{
42 sound->cache = cache;
43 sound->waveform = waveform;
45
46 reset();
47}
48
49} // namespace blender::deg
SoundBackup(const Depsgraph *depsgraph)
void * playback_handle
void * cache
void * waveform