Blender
V4.5
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
Ipo
;
14
struct
PackedFile
;
15
16
typedef
struct
bSound
{
17
#ifdef __cplusplus
19
static
constexpr
ID_Type
id_type =
ID_SO
;
20
#endif
21
22
ID
id
;
23
27
char
filepath
[
/*FILE_MAX*/
1024];
28
32
struct
PackedFile
*
packedfile
;
33
37
void
*
handle
;
38
42
struct
PackedFile
*
newpackedfile
;
43
struct
Ipo
*
ipo
;
44
45
float
volume
;
46
float
attenuation
;
47
float
pitch
;
48
float
min_gain
;
49
float
max_gain
;
50
float
distance
;
51
short
flags
;
53
short
tags
;
54
char
_pad
[4];
55
double
offset_time
;
56
57
/* Unused currently. */
58
// int type;
59
// struct bSound *child_sound;
60
64
void
*
cache
;
65
69
void
*
waveform
;
70
75
void
*
playback_handle
;
76
78
void
*
spinlock
;
79
/* XXX unused currently (SOUND_TYPE_LIMITER) */
80
// float start, end;
81
82
/* Description of Audio channels, as of #eSoundChannels. */
83
int
audio_channels
;
84
85
int
samplerate
;
86
87
}
bSound
;
88
89
/* XXX unused currently */
90
#if 0
91
typedef
enum
eSound_Type {
92
SOUND_TYPE_INVALID = -1,
93
SOUND_TYPE_FILE = 0,
94
SOUND_TYPE_BUFFER = 1,
95
SOUND_TYPE_LIMITER = 2,
96
} eSound_Type;
97
#endif
98
100
enum
{
101
#ifdef DNA_DEPRECATED_ALLOW
102
/* deprecated! used for sound actuator loading */
103
SOUND_FLAGS_3D = (1 << 3),
104
#endif
105
SOUND_FLAGS_CACHING
= (1 << 4),
106
SOUND_FLAGS_MONO
= (1 << 5),
107
};
108
110
enum
{
111
/* Do not free/reset waveform on sound load, only used by undo code. */
112
SOUND_TAGS_WAVEFORM_NO_RELOAD
= 1 << 0,
113
SOUND_TAGS_WAVEFORM_LOADING
= (1 << 6),
114
};
DNA_ID.h
ID and Library types, which are fundamental for SDNA.
ID_Type
ID_Type
Definition
DNA_ID_enums.h:122
ID_SO
@ ID_SO
Definition
DNA_ID_enums.h:142
DNA_defs.h
SOUND_TAGS_WAVEFORM_LOADING
@ SOUND_TAGS_WAVEFORM_LOADING
Definition
DNA_sound_types.h:113
SOUND_TAGS_WAVEFORM_NO_RELOAD
@ SOUND_TAGS_WAVEFORM_NO_RELOAD
Definition
DNA_sound_types.h:112
SOUND_FLAGS_MONO
@ SOUND_FLAGS_MONO
Definition
DNA_sound_types.h:106
SOUND_FLAGS_CACHING
@ SOUND_FLAGS_CACHING
Definition
DNA_sound_types.h:105
ID
Definition
DNA_ID.h:404
Ipo
Definition
DNA_ipo_types.h:85
PackedFile
Definition
DNA_packedFile_types.h:13
bSound
Definition
DNA_sound_types.h:16
bSound::samplerate
int samplerate
Definition
DNA_sound_types.h:85
bSound::playback_handle
void * playback_handle
Definition
DNA_sound_types.h:75
bSound::packedfile
struct PackedFile * packedfile
Definition
DNA_sound_types.h:32
bSound::newpackedfile
struct PackedFile * newpackedfile
Definition
DNA_sound_types.h:42
bSound::filepath
char filepath[1024]
Definition
DNA_sound_types.h:27
bSound::handle
void * handle
Definition
DNA_sound_types.h:37
bSound::ipo
struct Ipo * ipo
Definition
DNA_sound_types.h:43
bSound::cache
void * cache
Definition
DNA_sound_types.h:64
bSound::min_gain
float min_gain
Definition
DNA_sound_types.h:48
bSound::spinlock
void * spinlock
Definition
DNA_sound_types.h:78
bSound::id
ID id
Definition
DNA_sound_types.h:22
bSound::waveform
void * waveform
Definition
DNA_sound_types.h:69
bSound::audio_channels
int audio_channels
Definition
DNA_sound_types.h:83
bSound::flags
short flags
Definition
DNA_sound_types.h:51
bSound::_pad
char _pad[4]
Definition
DNA_sound_types.h:54
bSound::max_gain
float max_gain
Definition
DNA_sound_types.h:49
bSound::distance
float distance
Definition
DNA_sound_types.h:50
bSound::pitch
float pitch
Definition
DNA_sound_types.h:47
bSound::attenuation
float attenuation
Definition
DNA_sound_types.h:46
bSound::tags
short tags
Definition
DNA_sound_types.h:53
bSound::offset_time
double offset_time
Definition
DNA_sound_types.h:55
bSound::volume
float volume
Definition
DNA_sound_types.h:45
Generated on
for Blender by
doxygen
1.16.1