Blender  V3.3
deg_eval_runtime_backup_sound.h
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 
8 #pragma once
9 
10 struct bSound;
11 
12 namespace blender::deg {
13 
14 struct Depsgraph;
15 
16 /* Backup of sound datablocks runtime data. */
17 class SoundBackup {
18  public:
20 
21  void reset();
22 
23  void init_from_sound(bSound *sound);
24  void restore_to_sound(bSound *sound);
25 
26  void *cache;
27  void *waveform;
29 };
30 
31 } // namespace blender::deg
struct Depsgraph Depsgraph
Definition: DEG_depsgraph.h:35
SoundBackup(const Depsgraph *depsgraph)
const Depsgraph * depsgraph