Blender V5.0
DNA_speaker_types.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "DNA_ID.h"
12
13struct AnimData;
14struct bSound;
15
16typedef struct Speaker {
17#ifdef __cplusplus
19 static constexpr ID_Type id_type = ID_SPK;
20#endif
21
24 struct AnimData *adt;
25
26 struct bSound *sound;
27
28 /* not animatable properties */
37
38 /* animatable properties */
39 float volume;
40 float pitch;
41
42 /* flag */
43 short flag;
44 char _pad1[6];
46
47/* **************** SPEAKER ********************* */
48
50enum {
51 SPK_DS_EXPAND = 1 << 0,
52 SPK_MUTED = 1 << 1,
53 // SPK_RELATIVE = 1 << 2, /* UNUSED */
54};
ID and Library types, which are fundamental for SDNA.
ID_Type
@ ID_SPK
@ SPK_MUTED
@ SPK_DS_EXPAND
Definition DNA_ID.h:414
float cone_angle_outer
float distance_reference
struct AnimData * adt
float cone_volume_outer
float distance_max
float attenuation
char _pad1[6]
struct bSound * sound
float cone_angle_inner