Blender
V4.3
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 */
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
ID
id
;
18
23
char
filepath
[1024];
24
28
struct
PackedFile
*
packedfile
;
29
33
void
*
handle
;
34
38
struct
PackedFile
*
newpackedfile
;
39
struct
Ipo
*
ipo
;
40
41
float
volume
;
42
float
attenuation
;
43
float
pitch
;
44
float
min_gain
;
45
float
max_gain
;
46
float
distance
;
47
short
flags
;
49
short
tags
;
50
char
_pad
[4];
51
double
offset_time
;
52
53
/* Unused currently. */
54
// int type;
55
// struct bSound *child_sound;
56
60
void
*
cache
;
61
65
void
*
waveform
;
66
71
void
*
playback_handle
;
72
74
void
*
spinlock
;
75
/* XXX unused currently (SOUND_TYPE_LIMITER) */
76
// float start, end;
77
78
/* Description of Audio channels, as of #eSoundChannels. */
79
int
audio_channels
;
80
81
int
samplerate
;
82
83
}
bSound
;
84
85
/* XXX unused currently */
86
#if 0
87
typedef
enum
eSound_Type {
88
SOUND_TYPE_INVALID = -1,
89
SOUND_TYPE_FILE = 0,
90
SOUND_TYPE_BUFFER = 1,
91
SOUND_TYPE_LIMITER = 2,
92
} eSound_Type;
93
#endif
94
96
enum
{
97
#ifdef DNA_DEPRECATED_ALLOW
98
/* deprecated! used for sound actuator loading */
99
SOUND_FLAGS_3D = (1 << 3),
100
#endif
101
SOUND_FLAGS_CACHING
= (1 << 4),
102
SOUND_FLAGS_MONO
= (1 << 5),
103
};
104
106
enum
{
107
/* Do not free/reset waveform on sound load, only used by undo code. */
108
SOUND_TAGS_WAVEFORM_NO_RELOAD
= 1 << 0,
109
SOUND_TAGS_WAVEFORM_LOADING
= (1 << 6),
110
};
DNA_ID.h
ID and Library types, which are fundamental for SDNA.
DNA_defs.h
bSound
struct bSound bSound
SOUND_FLAGS_MONO
@ SOUND_FLAGS_MONO
Definition
DNA_sound_types.h:102
SOUND_FLAGS_CACHING
@ SOUND_FLAGS_CACHING
Definition
DNA_sound_types.h:101
SOUND_TAGS_WAVEFORM_LOADING
@ SOUND_TAGS_WAVEFORM_LOADING
Definition
DNA_sound_types.h:109
SOUND_TAGS_WAVEFORM_NO_RELOAD
@ SOUND_TAGS_WAVEFORM_NO_RELOAD
Definition
DNA_sound_types.h:108
ID
Definition
DNA_ID.h:413
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:81
bSound::playback_handle
void * playback_handle
Definition
DNA_sound_types.h:71
bSound::packedfile
struct PackedFile * packedfile
Definition
DNA_sound_types.h:28
bSound::newpackedfile
struct PackedFile * newpackedfile
Definition
DNA_sound_types.h:38
bSound::filepath
char filepath[1024]
Definition
DNA_sound_types.h:23
bSound::handle
void * handle
Definition
DNA_sound_types.h:33
bSound::ipo
struct Ipo * ipo
Definition
DNA_sound_types.h:39
bSound::cache
void * cache
Definition
DNA_sound_types.h:60
bSound::min_gain
float min_gain
Definition
DNA_sound_types.h:44
bSound::spinlock
void * spinlock
Definition
DNA_sound_types.h:74
bSound::id
ID id
Definition
DNA_sound_types.h:17
bSound::waveform
void * waveform
Definition
DNA_sound_types.h:65
bSound::audio_channels
int audio_channels
Definition
DNA_sound_types.h:79
bSound::flags
short flags
Definition
DNA_sound_types.h:47
bSound::_pad
char _pad[4]
Definition
DNA_sound_types.h:50
bSound::max_gain
float max_gain
Definition
DNA_sound_types.h:45
bSound::distance
float distance
Definition
DNA_sound_types.h:46
bSound::pitch
float pitch
Definition
DNA_sound_types.h:43
bSound::attenuation
float attenuation
Definition
DNA_sound_types.h:42
bSound::tags
short tags
Definition
DNA_sound_types.h:49
bSound::offset_time
double offset_time
Definition
DNA_sound_types.h:51
bSound::volume
float volume
Definition
DNA_sound_types.h:41
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0