Blender  V2.93
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)
 
void * BKE_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 122 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 88 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 82 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 49 of file speaker.c.

References BKE_LIB_FOREACHID_PROCESS, 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,
.flags = 0,
.copy_data = NULL,
.free_data = NULL,
.make_local = NULL,
.foreach_id = speaker_foreach_id,
.foreach_cache = 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,
}
#define BLT_I18NCONTEXT_ID_SPEAKER
#define FILTER_ID_SPK
Definition: DNA_ID.h:726
@ INDEX_ID_SPK
Definition: DNA_ID.h:836
@ ID_SPK
Definition: DNA_ID_enums.h:75
struct Speaker Speaker
static void init_data(ModifierData *md)
static void speaker_blend_read_lib(BlendLibReader *reader, ID *id)
Definition: speaker.c:82
static void speaker_blend_read_expand(BlendExpander *expander, ID *id)
Definition: speaker.c:88
static void speaker_init_data(ID *id)
Definition: speaker.c:40
static void speaker_blend_read_data(BlendDataReader *reader, ID *id)
Definition: speaker.c:70
static void speaker_blend_write(BlendWriter *writer, ID *id, const void *id_address)
Definition: speaker.c:56
static void speaker_foreach_id(ID *id, LibraryForeachIDData *data)
Definition: speaker.c:49

Definition at line 94 of file speaker.c.