Blender V5.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
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 this->cache = nullptr;
23 this->waveform = nullptr;
24 this->playback_handle = nullptr;
25}
26
32
34{
36 reset();
37}
38
39} // namespace blender::deg
SoundBackup(const Depsgraph *depsgraph)
void BKE_sound_runtime_state_set(const bSound *sound, AUD_Sound cache, AUD_Sound playback_handle, Vector< float > *waveform)
void BKE_sound_runtime_state_get_and_clear(const bSound *sound, AUD_Sound *r_cache, AUD_Sound *r_playback_handle, Vector< float > **r_waveform)