Blender
V5.0
source
blender
makesdna
DNA_sound_types.h
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2001-2002 NaN Holding BV. All rights reserved.
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
7
8
#pragma once
9
10
#include "
DNA_ID.h
"
11
#include "
DNA_defs.h
"
12
13
struct
PackedFile
;
14
15
typedef
struct
bSound
{
16
#ifdef __cplusplus
18
static
constexpr
ID_Type
id_type =
ID_SO
;
19
#endif
20
21
ID
id
;
22
23
void
*
_pad1
;
24
28
char
filepath
[
/*FILE_MAX*/
1024];
29
33
struct
PackedFile
*
packedfile
;
34
38
void
*
handle
;
39
43
struct
PackedFile
*
newpackedfile
;
44
void
*
_pad0
;
45
46
float
volume
;
47
float
attenuation
;
48
float
pitch
;
49
float
min_gain
;
50
float
max_gain
;
51
float
distance
;
52
short
flags
;
54
short
tags
;
55
char
_pad
[4];
56
double
offset_time
;
57
58
/* Unused currently. */
59
// int type;
60
// struct bSound *child_sound;
61
65
void
*
cache
;
66
70
void
*
waveform
;
71
76
void
*
playback_handle
;
77
79
void
*
spinlock
;
80
/* XXX unused currently (SOUND_TYPE_LIMITER) */
81
// float start, end;
82
83
/* Description of Audio channels, as of #eSoundChannels. */
84
int
audio_channels
;
85
86
int
samplerate
;
87
88
}
bSound
;
89
90
/* XXX unused currently */
91
#if 0
92
typedef
enum
eSound_Type {
93
SOUND_TYPE_INVALID = -1,
94
SOUND_TYPE_FILE = 0,
95
SOUND_TYPE_BUFFER = 1,
96
SOUND_TYPE_LIMITER = 2,
97
} eSound_Type;
98
#endif
99
101
enum
{
102
#ifdef DNA_DEPRECATED_ALLOW
103
/* deprecated! used for sound actuator loading */
104
SOUND_FLAGS_3D = (1 << 3),
105
#endif
106
SOUND_FLAGS_CACHING
= (1 << 4),
107
SOUND_FLAGS_MONO
= (1 << 5),
108
};
109
111
enum
{
112
/* Do not free/reset waveform on sound load, only used by undo code. */
113
SOUND_TAGS_WAVEFORM_NO_RELOAD
= 1 << 0,
114
SOUND_TAGS_WAVEFORM_LOADING
= (1 << 6),
115
};
DNA_ID.h
ID and Library types, which are fundamental for SDNA.
ID_Type
ID_Type
Definition
DNA_ID_enums.h:116
ID_SO
@ ID_SO
Definition
DNA_ID_enums.h:135
DNA_defs.h
SOUND_FLAGS_MONO
@ SOUND_FLAGS_MONO
Definition
DNA_sound_types.h:107
SOUND_FLAGS_CACHING
@ SOUND_FLAGS_CACHING
Definition
DNA_sound_types.h:106
SOUND_TAGS_WAVEFORM_LOADING
@ SOUND_TAGS_WAVEFORM_LOADING
Definition
DNA_sound_types.h:114
SOUND_TAGS_WAVEFORM_NO_RELOAD
@ SOUND_TAGS_WAVEFORM_NO_RELOAD
Definition
DNA_sound_types.h:113
ID
Definition
DNA_ID.h:414
PackedFile
Definition
DNA_packedFile_types.h:13
bSound
Definition
DNA_sound_types.h:15
bSound::_pad1
void * _pad1
Definition
DNA_sound_types.h:23
bSound::samplerate
int samplerate
Definition
DNA_sound_types.h:86
bSound::playback_handle
void * playback_handle
Definition
DNA_sound_types.h:76
bSound::packedfile
struct PackedFile * packedfile
Definition
DNA_sound_types.h:33
bSound::newpackedfile
struct PackedFile * newpackedfile
Definition
DNA_sound_types.h:43
bSound::filepath
char filepath[1024]
Definition
DNA_sound_types.h:28
bSound::handle
void * handle
Definition
DNA_sound_types.h:38
bSound::cache
void * cache
Definition
DNA_sound_types.h:65
bSound::min_gain
float min_gain
Definition
DNA_sound_types.h:49
bSound::spinlock
void * spinlock
Definition
DNA_sound_types.h:79
bSound::id
ID id
Definition
DNA_sound_types.h:21
bSound::waveform
void * waveform
Definition
DNA_sound_types.h:70
bSound::audio_channels
int audio_channels
Definition
DNA_sound_types.h:84
bSound::flags
short flags
Definition
DNA_sound_types.h:52
bSound::_pad
char _pad[4]
Definition
DNA_sound_types.h:55
bSound::max_gain
float max_gain
Definition
DNA_sound_types.h:50
bSound::distance
float distance
Definition
DNA_sound_types.h:51
bSound::pitch
float pitch
Definition
DNA_sound_types.h:48
bSound::attenuation
float attenuation
Definition
DNA_sound_types.h:47
bSound::tags
short tags
Definition
DNA_sound_types.h:54
bSound::offset_time
double offset_time
Definition
DNA_sound_types.h:56
bSound::volume
float volume
Definition
DNA_sound_types.h:46
bSound::_pad0
void * _pad0
Definition
DNA_sound_types.h:44
Generated on
for Blender by
doxygen
1.16.1