Blender
V5.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 */
7
8
#pragma once
9
10
#include "
BLI_enum_flags.hh
"
11
12
#include "
DNA_ID.h
"
13
14
namespace
blender
{
15
16
namespace
bke
{
17
struct
SoundRuntime
;
18
}
// namespace bke
19
20
struct
PackedFile
;
21
23
enum
eSound_Flag
:
short
{
24
#ifdef DNA_DEPRECATED_ALLOW
25
/* deprecated! used for sound actuator loading */
26
SOUND_FLAGS_3D = (1 << 3),
27
#endif
28
SOUND_FLAGS_CACHING
= (1 << 4),
29
SOUND_FLAGS_MONO
= (1 << 5),
30
};
31
ENUM_OPERATORS
(
eSound_Flag
)
32
33
struct
bSound
{
34
#ifdef __cplusplus
36
static
constexpr
ID_Type
id_type =
ID_SO
;
37
#endif
38
39
ID
id
;
40
44
char
filepath
[
/*FILE_MAX*/
1024] =
""
;
45
49
struct
PackedFile
*
packedfile
=
nullptr
;
50
54
struct
PackedFile
*
newpackedfile
=
nullptr
;
55
void
*
_pad0
=
nullptr
;
56
57
double
offset_time
= 0;
58
float
volume
= 0;
59
float
attenuation
= 0;
60
float
pitch
= 0;
61
float
min_gain
= 0;
62
float
max_gain
= 0;
63
float
distance
= 0;
64
/* Description of Audio channels, as of #eSoundChannels. */
65
int
audio_channels
= 0;
66
int
samplerate
= 0;
67
eSound_Flag
flags
= {};
68
short
stream_index
= 0;
69
char
_pad1
[4] = {};
70
71
bke::SoundRuntime
*
runtime
=
nullptr
;
72
void
*
_pad2
=
nullptr
;
73
};
74
75
}
// namespace blender
BLI_enum_flags.hh
ENUM_OPERATORS
#define ENUM_OPERATORS(_enum_type)
Definition
BLI_enum_flags.hh:35
DNA_ID.h
ID and Library types, which are fundamental for SDNA.
blender::bke
Definition
AS_asset_library.hh:32
blender
BMesh Iterators.
Definition
ANIM_action.hh:30
blender::eSound_Flag
eSound_Flag
Definition
DNA_sound_types.h:23
blender::SOUND_FLAGS_CACHING
@ SOUND_FLAGS_CACHING
Definition
DNA_sound_types.h:28
blender::SOUND_FLAGS_MONO
@ SOUND_FLAGS_MONO
Definition
DNA_sound_types.h:29
blender::ID_Type
ID_Type
Definition
DNA_ID_enums.h:136
blender::ID_SO
@ ID_SO
Definition
DNA_ID_enums.h:155
blender::ID
Definition
DNA_ID.h:415
blender::PackedFile
Definition
DNA_packedFile_types.h:15
blender::bSound
Definition
DNA_sound_types.h:33
blender::bSound::stream_index
short stream_index
Definition
DNA_sound_types.h:68
blender::bSound::volume
float volume
Definition
DNA_sound_types.h:58
blender::bSound::flags
eSound_Flag flags
Definition
DNA_sound_types.h:67
blender::bSound::filepath
char filepath[1024]
Definition
DNA_sound_types.h:44
blender::bSound::pitch
float pitch
Definition
DNA_sound_types.h:60
blender::bSound::attenuation
float attenuation
Definition
DNA_sound_types.h:59
blender::bSound::distance
float distance
Definition
DNA_sound_types.h:63
blender::bSound::offset_time
double offset_time
Definition
DNA_sound_types.h:57
blender::bSound::_pad2
void * _pad2
Definition
DNA_sound_types.h:72
blender::bSound::samplerate
int samplerate
Definition
DNA_sound_types.h:66
blender::bSound::newpackedfile
struct PackedFile * newpackedfile
Definition
DNA_sound_types.h:54
blender::bSound::runtime
bke::SoundRuntime * runtime
Definition
DNA_sound_types.h:71
blender::bSound::min_gain
float min_gain
Definition
DNA_sound_types.h:61
blender::bSound::max_gain
float max_gain
Definition
DNA_sound_types.h:62
blender::bSound::_pad1
char _pad1[4]
Definition
DNA_sound_types.h:69
blender::bSound::_pad0
void * _pad0
Definition
DNA_sound_types.h:55
blender::bSound::id
ID id
Definition
DNA_sound_types.h:39
blender::bSound::packedfile
struct PackedFile * packedfile
Definition
DNA_sound_types.h:49
blender::bSound::audio_channels
int audio_channels
Definition
DNA_sound_types.h:65
blender::bke::SoundRuntime
Definition
blenkernel/intern/sound.cc:134
Generated on
for Blender by
doxygen
1.18.0