Blender V5.3
DNA_sound_types.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2001-2002 NaN Holding BV. All rights reserved.
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
7
8#pragma once
9
10#include "BLI_enum_flags.hh"
11
12#include "DNA_ID.h"
13
14namespace blender {
15
16namespace bke {
17struct SoundRuntime;
18} // namespace bke
19
20struct PackedFile;
21
23enum eSound_Flag : short {
24#ifdef DNA_DEPRECATED_ALLOW
25 /* deprecated! used for sound actuator loading */
26 SOUND_FLAGS_3D = (1 << 3),
27#endif
29 SOUND_FLAGS_MONO = (1 << 5),
30};
32
33struct bSound {
34#ifdef __cplusplus
36 static constexpr ID_Type id_type = ID_SO;
37#endif
38
40
44 char filepath[/*FILE_MAX*/ 1024] = "";
45
49 struct PackedFile *packedfile = nullptr;
50
54 struct PackedFile *newpackedfile = nullptr;
55 void *_pad0 = nullptr;
56
57 double offset_time = 0;
58 float volume = 0;
59 float attenuation = 0;
60 float pitch = 0;
61 float min_gain = 0;
62 float max_gain = 0;
63 float distance = 0;
64 /* Description of Audio channels, as of #eSoundChannels. */
66 int samplerate = 0;
68 short stream_index = 0;
69 char _pad1[4] = {};
70
72 void *_pad2 = nullptr;
73};
74
75} // namespace blender
#define ENUM_OPERATORS(_enum_type)
ID and Library types, which are fundamental for SDNA.
BMesh Iterators.
@ SOUND_FLAGS_CACHING
eSound_Flag flags
char filepath[1024]
struct PackedFile * newpackedfile
bke::SoundRuntime * runtime
struct PackedFile * packedfile