Blender
V2.93
source
blender
makesdna
DNA_sound_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
* The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
17
* All rights reserved.
18
*/
23
#pragma once
24
25
#include "
DNA_ID.h
"
26
#include "
DNA_defs.h
"
27
28
#ifdef __cplusplus
29
extern
"C"
{
30
#endif
31
32
struct
Ipo
;
33
struct
PackedFile
;
34
35
typedef
struct
bSound
{
36
ID
id
;
37
42
char
filepath
[1024];
43
47
struct
PackedFile
*
packedfile
;
48
52
void
*
handle
;
53
57
struct
PackedFile
*
newpackedfile
;
58
struct
Ipo
*
ipo
;
59
60
float
volume
;
61
float
attenuation
;
62
float
pitch
;
63
float
min_gain
;
64
float
max_gain
;
65
float
distance
;
66
short
flags
;
68
short
tags
;
69
char
_pad
[4];
70
double
offset_time
;
71
72
/* Unused currently. */
73
// int type;
74
// struct bSound *child_sound;
75
79
void
*
cache
;
80
84
void
*
waveform
;
85
90
void
*
playback_handle
;
91
93
void
*
spinlock
;
94
/* XXX unused currently (SOUND_TYPE_LIMITER) */
95
/* float start, end; */
96
}
bSound
;
97
98
/* XXX unused currently */
99
#if 0
100
typedef
enum
eSound_Type {
101
SOUND_TYPE_INVALID = -1,
102
SOUND_TYPE_FILE = 0,
103
SOUND_TYPE_BUFFER = 1,
104
SOUND_TYPE_LIMITER = 2,
105
} eSound_Type;
106
#endif
107
109
enum
{
110
#ifdef DNA_DEPRECATED_ALLOW
111
/* deprecated! used for sound actuator loading */
112
SOUND_FLAGS_3D = (1 << 3),
113
#endif
114
SOUND_FLAGS_CACHING
= (1 << 4),
115
SOUND_FLAGS_MONO
= (1 << 5),
116
};
117
119
enum
{
120
/* Do not free/reset waveform on sound load, only used by undo code. */
121
SOUND_TAGS_WAVEFORM_NO_RELOAD
= 1 << 0,
122
SOUND_TAGS_WAVEFORM_LOADING
= (1 << 6),
123
};
124
125
#ifdef __cplusplus
126
}
127
#endif
DNA_ID.h
ID and Library types, which are fundamental for sdna.
DNA_defs.h
SOUND_TAGS_WAVEFORM_LOADING
@ SOUND_TAGS_WAVEFORM_LOADING
Definition:
DNA_sound_types.h:122
SOUND_TAGS_WAVEFORM_NO_RELOAD
@ SOUND_TAGS_WAVEFORM_NO_RELOAD
Definition:
DNA_sound_types.h:121
bSound
struct bSound bSound
SOUND_FLAGS_MONO
@ SOUND_FLAGS_MONO
Definition:
DNA_sound_types.h:115
SOUND_FLAGS_CACHING
@ SOUND_FLAGS_CACHING
Definition:
DNA_sound_types.h:114
ID
Definition:
DNA_ID.h:273
Ipo
Definition:
DNA_ipo_types.h:99
PackedFile
Definition:
DNA_packedFile_types.h:30
bSound
Definition:
DNA_sound_types.h:35
bSound::playback_handle
void * playback_handle
Definition:
DNA_sound_types.h:90
bSound::packedfile
struct PackedFile * packedfile
Definition:
DNA_sound_types.h:47
bSound::newpackedfile
struct PackedFile * newpackedfile
Definition:
DNA_sound_types.h:57
bSound::filepath
char filepath[1024]
Definition:
DNA_sound_types.h:42
bSound::handle
void * handle
Definition:
DNA_sound_types.h:52
bSound::ipo
struct Ipo * ipo
Definition:
DNA_sound_types.h:58
bSound::cache
void * cache
Definition:
DNA_sound_types.h:79
bSound::min_gain
float min_gain
Definition:
DNA_sound_types.h:63
bSound::spinlock
void * spinlock
Definition:
DNA_sound_types.h:93
bSound::id
ID id
Definition:
DNA_sound_types.h:36
bSound::waveform
void * waveform
Definition:
DNA_sound_types.h:84
bSound::flags
short flags
Definition:
DNA_sound_types.h:66
bSound::_pad
char _pad[4]
Definition:
DNA_sound_types.h:69
bSound::max_gain
float max_gain
Definition:
DNA_sound_types.h:64
bSound::distance
float distance
Definition:
DNA_sound_types.h:65
bSound::pitch
float pitch
Definition:
DNA_sound_types.h:62
bSound::attenuation
float attenuation
Definition:
DNA_sound_types.h:61
bSound::tags
short tags
Definition:
DNA_sound_types.h:68
bSound::offset_time
double offset_time
Definition:
DNA_sound_types.h:70
bSound::volume
float volume
Definition:
DNA_sound_types.h:60
Generated on Tue Jan 31 2023 14:37:24 for Blender by
doxygen
1.9.1