Blender  V3.3
Functions | Variables
speaker.c File Reference
#include "DNA_defaults.h"
#include "DNA_object_types.h"
#include "DNA_sound_types.h"
#include "DNA_speaker_types.h"
#include "BLI_math.h"
#include "BLI_utildefines.h"
#include "BLT_translation.h"
#include "BKE_anim_data.h"
#include "BKE_idtype.h"
#include "BKE_lib_id.h"
#include "BKE_lib_query.h"
#include "BKE_main.h"
#include "BKE_speaker.h"
#include "BLO_read_write.h"

Go to the source code of this file.

Functions

static void speaker_init_data (ID *id)
 
static void speaker_foreach_id (ID *id, LibraryForeachIDData *data)
 
static void speaker_blend_write (BlendWriter *writer, ID *id, const void *id_address)
 
static void speaker_blend_read_data (BlendDataReader *reader, ID *id)
 
static void speaker_blend_read_lib (BlendLibReader *reader, ID *id)
 
static void speaker_blend_read_expand (BlendExpander *expander, ID *id)
 
voidBKE_speaker_add (Main *bmain, const char *name)
 

Variables

IDTypeInfo IDType_ID_SPK
 

Function Documentation

◆ BKE_speaker_add()

void* BKE_speaker_add ( Main bmain,
const char *  name 
)

Definition at line 109 of file speaker.c.

References BKE_id_new(), and ID_SPK.

Referenced by BKE_object_obdata_add_from_type().

◆ speaker_blend_read_data()

static void speaker_blend_read_data ( BlendDataReader reader,
ID id 
)
static

◆ speaker_blend_read_expand()

static void speaker_blend_read_expand ( BlendExpander expander,
ID id 
)
static

Definition at line 73 of file speaker.c.

References BLO_expand, and Speaker::sound.

◆ speaker_blend_read_lib()

static void speaker_blend_read_lib ( BlendLibReader reader,
ID id 
)
static

Definition at line 67 of file speaker.c.

References BLO_read_id_address, Speaker::id, ID::lib, and Speaker::sound.

◆ speaker_blend_write()

static void speaker_blend_write ( BlendWriter writer,
ID id,
const void id_address 
)
static

◆ speaker_foreach_id()

static void speaker_foreach_id ( ID id,
LibraryForeachIDData data 
)
static

Definition at line 35 of file speaker.c.

References BKE_LIB_FOREACHID_PROCESS_IDSUPER, data, IDWALK_CB_USER, and Speaker::sound.

◆ speaker_init_data()

static void speaker_init_data ( ID id)
static

Variable Documentation

◆ IDType_ID_SPK

IDTypeInfo IDType_ID_SPK
Initial value:
= {
.id_code = ID_SPK,
.id_filter = FILTER_ID_SPK,
.main_listbase_index = INDEX_ID_SPK,
.struct_size = sizeof(Speaker),
.name = "Speaker",
.name_plural = "speakers",
.translation_context = BLT_I18NCONTEXT_ID_SPEAKER,
.asset_type_info = NULL,
.copy_data = NULL,
.free_data = NULL,
.make_local = NULL,
.foreach_id = speaker_foreach_id,
.foreach_cache = NULL,
.foreach_path = NULL,
.owner_get = NULL,
.blend_write = speaker_blend_write,
.blend_read_data = speaker_blend_read_data,
.blend_read_lib = speaker_blend_read_lib,
.blend_read_expand = speaker_blend_read_expand,
.blend_read_undo_preserve = NULL,
.lib_override_apply_post = NULL,
}
@ IDTYPE_FLAGS_APPEND_IS_REUSABLE
Definition: BKE_idtype.h:39
#define BLT_I18NCONTEXT_ID_SPEAKER
#define FILTER_ID_SPK
Definition: DNA_ID.h:920
@ INDEX_ID_SPK
Definition: DNA_ID.h:1035
@ ID_SPK
Definition: DNA_ID_enums.h:63
struct Speaker Speaker
static void init_data(ModifierData *md)
static void speaker_blend_read_lib(BlendLibReader *reader, ID *id)
Definition: speaker.c:67
static void speaker_blend_read_expand(BlendExpander *expander, ID *id)
Definition: speaker.c:73
static void speaker_init_data(ID *id)
Definition: speaker.c:26
static void speaker_blend_read_data(BlendDataReader *reader, ID *id)
Definition: speaker.c:55
static void speaker_blend_write(BlendWriter *writer, ID *id, const void *id_address)
Definition: speaker.c:42
static void speaker_foreach_id(ID *id, LibraryForeachIDData *data)
Definition: speaker.c:35

Definition at line 79 of file speaker.c.