Blender V5.3
DNA_speaker_types.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include <cfloat>
12
13#include "BLI_enum_flags.hh"
14
15#include "DNA_ID.h"
16
17namespace blender {
18
19struct AnimData;
20struct bSound;
21
22/* **************** SPEAKER ********************* */
23
25enum eSpeaker_Flag : short {
26 SPK_DS_EXPAND = 1 << 0,
27 SPK_MUTED = 1 << 1,
28 // SPK_RELATIVE = 1 << 2, /* UNUSED */
29};
31
32struct Speaker {
33#ifdef __cplusplus
35 static constexpr ID_Type id_type = ID_SPK;
36#endif
37
40 struct AnimData *adt = nullptr;
41
42 struct bSound *sound = nullptr;
43
44 /* not animatable properties */
45 float volume_max = 1.0f;
46 float volume_min = 0.0f;
48 float distance_reference = 1.0f;
49 float attenuation = 1.0f;
50 float cone_angle_outer = 360.0f;
51 float cone_angle_inner = 360.0f;
52 float cone_volume_outer = 1.0f;
53
54 /* animatable properties */
55 float volume = 1.0f;
56 float pitch = 1.0f;
57
58 /* flag */
60 char _pad1[6] = {};
61};
62
63} // namespace blender
#define ENUM_OPERATORS(_enum_type)
ID and Library types, which are fundamental for SDNA.
#define FLT_MAX
BMesh Iterators.
struct bSound * sound
struct AnimData * adt