Blender
V3.3
source
blender
makesdna
DNA_sound_types.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-or-later
2
* Copyright 2001-2002 NaN Holding BV. All rights reserved. */
7
#pragma once
8
9
#include "
DNA_ID.h
"
10
#include "
DNA_defs.h
"
11
12
#ifdef __cplusplus
13
extern
"C"
{
14
#endif
15
16
struct
Ipo
;
17
struct
PackedFile
;
18
19
typedef
struct
bSound
{
20
ID
id
;
21
26
char
filepath
[1024];
27
31
struct
PackedFile
*
packedfile
;
32
36
void
*
handle
;
37
41
struct
PackedFile
*
newpackedfile
;
42
struct
Ipo
*
ipo
;
43
44
float
volume
;
45
float
attenuation
;
46
float
pitch
;
47
float
min_gain
;
48
float
max_gain
;
49
float
distance
;
50
short
flags
;
52
short
tags
;
53
char
_pad
[4];
54
double
offset_time
;
55
56
/* Unused currently. */
57
// int type;
58
// struct bSound *child_sound;
59
63
void
*
cache
;
64
68
void
*
waveform
;
69
74
void
*
playback_handle
;
75
77
void
*
spinlock
;
78
/* XXX unused currently (SOUND_TYPE_LIMITER) */
79
/* float start, end; */
80
81
/* Description of Audio channels, as of eSoundChannels*/
82
int
audio_channels
;
83
84
int
samplerate
;
85
86
}
bSound
;
87
88
/* XXX unused currently */
89
#if 0
90
typedef
enum
eSound_Type {
91
SOUND_TYPE_INVALID = -1,
92
SOUND_TYPE_FILE = 0,
93
SOUND_TYPE_BUFFER = 1,
94
SOUND_TYPE_LIMITER = 2,
95
} eSound_Type;
96
#endif
97
99
enum
{
100
#ifdef DNA_DEPRECATED_ALLOW
101
/* deprecated! used for sound actuator loading */
102
SOUND_FLAGS_3D = (1 << 3),
103
#endif
104
SOUND_FLAGS_CACHING
= (1 << 4),
105
SOUND_FLAGS_MONO
= (1 << 5),
106
};
107
109
enum
{
110
/* Do not free/reset waveform on sound load, only used by undo code. */
111
SOUND_TAGS_WAVEFORM_NO_RELOAD
= 1 << 0,
112
SOUND_TAGS_WAVEFORM_LOADING
= (1 << 6),
113
};
114
115
#ifdef __cplusplus
116
}
117
#endif
DNA_ID.h
ID and Library types, which are fundamental for sdna.
DNA_defs.h
SOUND_FLAGS_MONO
@ SOUND_FLAGS_MONO
Definition:
DNA_sound_types.h:105
SOUND_FLAGS_CACHING
@ SOUND_FLAGS_CACHING
Definition:
DNA_sound_types.h:104
bSound
struct bSound bSound
SOUND_TAGS_WAVEFORM_LOADING
@ SOUND_TAGS_WAVEFORM_LOADING
Definition:
DNA_sound_types.h:112
SOUND_TAGS_WAVEFORM_NO_RELOAD
@ SOUND_TAGS_WAVEFORM_NO_RELOAD
Definition:
DNA_sound_types.h:111
ID
Definition:
DNA_ID.h:368
Ipo
Definition:
DNA_ipo_types.h:84
PackedFile
Definition:
DNA_packedFile_types.h:14
bSound
Definition:
DNA_sound_types.h:19
bSound::samplerate
int samplerate
Definition:
DNA_sound_types.h:84
bSound::playback_handle
void * playback_handle
Definition:
DNA_sound_types.h:74
bSound::packedfile
struct PackedFile * packedfile
Definition:
DNA_sound_types.h:31
bSound::newpackedfile
struct PackedFile * newpackedfile
Definition:
DNA_sound_types.h:41
bSound::filepath
char filepath[1024]
Definition:
DNA_sound_types.h:26
bSound::handle
void * handle
Definition:
DNA_sound_types.h:36
bSound::ipo
struct Ipo * ipo
Definition:
DNA_sound_types.h:42
bSound::cache
void * cache
Definition:
DNA_sound_types.h:63
bSound::min_gain
float min_gain
Definition:
DNA_sound_types.h:47
bSound::spinlock
void * spinlock
Definition:
DNA_sound_types.h:77
bSound::id
ID id
Definition:
DNA_sound_types.h:20
bSound::waveform
void * waveform
Definition:
DNA_sound_types.h:68
bSound::audio_channels
int audio_channels
Definition:
DNA_sound_types.h:82
bSound::flags
short flags
Definition:
DNA_sound_types.h:50
bSound::_pad
char _pad[4]
Definition:
DNA_sound_types.h:53
bSound::max_gain
float max_gain
Definition:
DNA_sound_types.h:48
bSound::distance
float distance
Definition:
DNA_sound_types.h:49
bSound::pitch
float pitch
Definition:
DNA_sound_types.h:46
bSound::attenuation
float attenuation
Definition:
DNA_sound_types.h:45
bSound::tags
short tags
Definition:
DNA_sound_types.h:52
bSound::offset_time
double offset_time
Definition:
DNA_sound_types.h:54
bSound::volume
float volume
Definition:
DNA_sound_types.h:44
Generated on Sat Jul 27 2024 14:57:55 for Blender by
doxygen
1.9.1