Blender  V2.93
DNA_speaker_types.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  */
16 
21 #pragma once
22 
23 #include "DNA_ID.h"
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 struct AnimData;
30 struct bSound;
31 
32 typedef struct Speaker {
33  ID id;
35  struct AnimData *adt;
36 
37  struct bSound *sound;
38 
39  /* not animatable properties */
40  float volume_max;
41  float volume_min;
42  float distance_max;
44  float attenuation;
48 
49  /* animatable properties */
50  float volume;
51  float pitch;
52 
53  /* flag */
54  short flag;
55  char _pad1[6];
57 
58 /* **************** SPEAKER ********************* */
59 
60 /* flag */
61 #define SPK_DS_EXPAND (1 << 0)
62 #define SPK_MUTED (1 << 1)
63 // #define SPK_RELATIVE (1 << 2) /* UNUSED */
64 
65 #ifdef __cplusplus
66 }
67 #endif
ID and Library types, which are fundamental for sdna.
struct Speaker Speaker
Definition: DNA_ID.h:273
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