Blender  V3.3
DNA_speaker_types.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
7 #pragma once
8 
9 #include "DNA_ID.h"
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
15 struct AnimData;
16 struct bSound;
17 
18 typedef struct Speaker {
19  ID id;
21  struct AnimData *adt;
22 
23  struct bSound *sound;
24 
25  /* not animatable properties */
26  float volume_max;
27  float volume_min;
28  float distance_max;
30  float attenuation;
34 
35  /* animatable properties */
36  float volume;
37  float pitch;
38 
39  /* flag */
40  short flag;
41  char _pad1[6];
43 
44 /* **************** SPEAKER ********************* */
45 
46 /* flag */
47 #define SPK_DS_EXPAND (1 << 0)
48 #define SPK_MUTED (1 << 1)
49 // #define SPK_RELATIVE (1 << 2) /* UNUSED */
50 
51 #ifdef __cplusplus
52 }
53 #endif
ID and Library types, which are fundamental for sdna.
struct Speaker Speaker
Definition: DNA_ID.h:368
float cone_angle_outer
float volume_max
float distance_reference
struct AnimData * adt
float cone_volume_outer
float distance_max
float attenuation
char _pad1[6]
float volume_min
struct bSound * sound
float cone_angle_inner