Blender
V2.93
source
blender
makesdna
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
;
43
float
distance_reference
;
44
float
attenuation
;
45
float
cone_angle_outer
;
46
float
cone_angle_inner
;
47
float
cone_volume_outer
;
48
49
/* animatable properties */
50
float
volume
;
51
float
pitch
;
52
53
/* flag */
54
short
flag
;
55
char
_pad1
[6];
56
}
Speaker
;
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
DNA_ID.h
ID and Library types, which are fundamental for sdna.
Speaker
struct Speaker Speaker
AnimData
Definition:
DNA_anim_types.h:1083
ID
Definition:
DNA_ID.h:273
Speaker
Definition:
DNA_speaker_types.h:32
Speaker::id
ID id
Definition:
DNA_speaker_types.h:33
Speaker::cone_angle_outer
float cone_angle_outer
Definition:
DNA_speaker_types.h:45
Speaker::volume_max
float volume_max
Definition:
DNA_speaker_types.h:40
Speaker::distance_reference
float distance_reference
Definition:
DNA_speaker_types.h:43
Speaker::adt
struct AnimData * adt
Definition:
DNA_speaker_types.h:35
Speaker::cone_volume_outer
float cone_volume_outer
Definition:
DNA_speaker_types.h:47
Speaker::distance_max
float distance_max
Definition:
DNA_speaker_types.h:42
Speaker::attenuation
float attenuation
Definition:
DNA_speaker_types.h:44
Speaker::pitch
float pitch
Definition:
DNA_speaker_types.h:51
Speaker::flag
short flag
Definition:
DNA_speaker_types.h:54
Speaker::_pad1
char _pad1[6]
Definition:
DNA_speaker_types.h:55
Speaker::volume_min
float volume_min
Definition:
DNA_speaker_types.h:41
Speaker::volume
float volume
Definition:
DNA_speaker_types.h:50
Speaker::sound
struct bSound * sound
Definition:
DNA_speaker_types.h:37
Speaker::cone_angle_inner
float cone_angle_inner
Definition:
DNA_speaker_types.h:46
bSound
Definition:
DNA_sound_types.h:35
Generated on Tue Jan 31 2023 14:37:24 for Blender by
doxygen
1.9.1