Open source remastering of the Freespace 2 engine
objectsnd.h File Reference

Go to the source code of this file.


#define OS_USED   (1<<0)
#define OS_DS3D   (1<<1)
#define OS_MAIN   (1<<2)
#define OS_TURRET_BASE_ROTATION   (1<<3)
#define OS_TURRET_GUN_ROTATION   (1<<4)
#define OS_SUBSYS_ALIVE   (1<<5)
#define OS_SUBSYS_DEAD   (1<<6)
#define OS_SUBSYS_DAMAGED   (1<<7)
#define OS_SUBSYS_ROTATION   (1<<8)


void obj_snd_level_init ()
void obj_snd_level_close ()
void obj_snd_do_frame ()
int obj_snd_assign (int objnum, int sndnum, vec3d *pos, int main, int flags=0, ship_subsys *associated_sub=NULL)
void obj_snd_delete (int objnum, int index)
void obj_snd_delete_type (int objnum, int sndnum=-1, ship_subsys *ss=NULL)
void obj_snd_delete_all ()
void obj_snd_stop_all ()
int obj_snd_is_playing (int objnum, int index)
int obj_snd_return_instance (int objnum, int index)
int obj_snd_update_offset (int objnum, int index, vec3d *new_offset)


int Obj_snd_enabled

Macro Definition Documentation

#define OS_DS3D   (1<<1)

Definition at line 16 of file objectsnd.h.

#define OS_MAIN   (1<<2)

Definition at line 17 of file objectsnd.h.

#define OS_SUBSYS_ALIVE   (1<<5)

Definition at line 20 of file objectsnd.h.

#define OS_SUBSYS_DAMAGED   (1<<7)

Definition at line 22 of file objectsnd.h.

#define OS_SUBSYS_DEAD   (1<<6)

Definition at line 21 of file objectsnd.h.

#define OS_SUBSYS_ROTATION   (1<<8)

Definition at line 23 of file objectsnd.h.

#define OS_TURRET_BASE_ROTATION   (1<<3)

Definition at line 18 of file objectsnd.h.

#define OS_TURRET_GUN_ROTATION   (1<<4)

Definition at line 19 of file objectsnd.h.

#define OS_USED   (1<<0)

Definition at line 15 of file objectsnd.h.

Function Documentation

int obj_snd_assign ( int  objnum,
int  sndnum,
vec3d pos,
int  main,
int  flags = 0,
ship_subsys associated_sub = NULL 

Definition at line 705 of file objectsnd.cpp.

void obj_snd_delete ( int  objnum,
int  index 

Definition at line 780 of file objectsnd.cpp.

void obj_snd_delete_all ( )

Definition at line 849 of file objectsnd.cpp.

void obj_snd_delete_type ( int  objnum,
int  sndnum = -1,
ship_subsys ss = NULL 

Definition at line 812 of file objectsnd.cpp.

void obj_snd_do_frame ( )

Definition at line 457 of file objectsnd.cpp.

int obj_snd_is_playing ( int  objnum,
int  index 

Definition at line 878 of file objectsnd.cpp.

void obj_snd_level_close ( )

Definition at line 864 of file objectsnd.cpp.

void obj_snd_level_init ( )

Definition at line 191 of file objectsnd.cpp.

int obj_snd_return_instance ( int  objnum,
int  index 

Definition at line 891 of file objectsnd.cpp.

void obj_snd_stop_all ( )

Definition at line 299 of file objectsnd.cpp.

int obj_snd_update_offset ( int  objnum,
int  index,
vec3d new_offset 

Definition at line 910 of file objectsnd.cpp.

Variable Documentation

int Obj_snd_enabled

Definition at line 66 of file objectsnd.cpp.