102 Dalmatians: Puppies to the Rescue
Decompilation Source Reference | GitLab repository
Loading...
Searching...
No Matches
spatial.c File Reference
#include "pcdogs/actor/constants.h"
#include "pcdogs/game/constants.h"
#include "pcdogs/audio/constants.h"
#include "pcdogs/audio/functions.h"
#include "pcdogs/audio/globals.h"
#include "pcdogs/audio/types.h"
#include "pcdogs/camera/globals.h"
#include "pcdogs/collision/functions.h"
#include "pcdogs/game/globals.h"
#include "pcdogs/game/types.h"
#include "pcdogs/image/globals.h"
#include "pcdogs/level/types.h"
#include "pcdogs/math/functions.h"
#include "pcdogs/math/types.h"
#include "pcdogs/package/globals.h"
#include "pcdogs/package/types.h"
#include "pcdogs/trail/functions.h"
#include <math.h>
#include <stdarg.h>
#include <string.h>

Go to the source code of this file.

Functions

static int32_t Math_DivideSignedWordPair (int32_t high, uint32_t low, int32_t divisor)
int32_t Audio_ResolveActorSoundIndex (struct Pkg_ActorTemplate const *actor_template, int32_t encoded_sound_selector)
void Audio_PlayLevelSoundIndexAtPosition (int32_t sound_index, struct Math_Vec3I32 *position)
void Audio_StopOrUpdateSoundsAtPosition (int32_t sound_index_or_mode, struct Math_Vec3I32 *position, char looping_only)
uint8_t Audio_CanRegisterCollisionSound (struct Audio_CollisionSoundCooldownEntry *entries, struct Actor_State *other_actor, int32_t sound_key)
uint8_t Audio_RegisterCollisionSoundEvent (struct Actor_State *actor, struct Actor_State *other_actor, int32_t sound_key, uint32_t packed_impact_cooldown)
int32_t Audio_PlaySound3D (struct Audio_SoundDefinition *sound_def, struct Math_Vec3I32 *position)
BOOL Audio_UpdateSoundPosition (int32_t slot_index)
uint8_t Audio_CalculateSpatialVolumeAndPan (struct Math_Vec3I32 *sound_position, uint32_t audible_radius, int32_t *out_volume_q12, int16_t *out_pan_angle)

Function Documentation

◆ Audio_CalculateSpatialVolumeAndPan()

uint8_t Audio_CalculateSpatialVolumeAndPan ( struct Math_Vec3I32 * sound_position,
uint32_t audible_radius,
int32_t * out_volume_q12,
int16_t * out_pan_angle )

Definition at line 240 of file spatial.c.

◆ Audio_CanRegisterCollisionSound()

uint8_t Audio_CanRegisterCollisionSound ( struct Audio_CollisionSoundCooldownEntry * entries,
struct Actor_State * other_actor,
int32_t sound_key )

Definition at line 110 of file spatial.c.

◆ Audio_PlayLevelSoundIndexAtPosition()

void Audio_PlayLevelSoundIndexAtPosition ( int32_t sound_index,
struct Math_Vec3I32 * position )

Definition at line 52 of file spatial.c.

◆ Audio_PlaySound3D()

int32_t Audio_PlaySound3D ( struct Audio_SoundDefinition * sound_def,
struct Math_Vec3I32 * position )

Definition at line 176 of file spatial.c.

◆ Audio_RegisterCollisionSoundEvent()

uint8_t Audio_RegisterCollisionSoundEvent ( struct Actor_State * actor,
struct Actor_State * other_actor,
int32_t sound_key,
uint32_t packed_impact_cooldown )

Definition at line 135 of file spatial.c.

◆ Audio_ResolveActorSoundIndex()

int32_t Audio_ResolveActorSoundIndex ( struct Pkg_ActorTemplate const * actor_template,
int32_t encoded_sound_selector )

Definition at line 37 of file spatial.c.

◆ Audio_StopOrUpdateSoundsAtPosition()

void Audio_StopOrUpdateSoundsAtPosition ( int32_t sound_index_or_mode,
struct Math_Vec3I32 * position,
char looping_only )

Definition at line 76 of file spatial.c.

◆ Audio_UpdateSoundPosition()

BOOL Audio_UpdateSoundPosition ( int32_t slot_index)

Definition at line 215 of file spatial.c.

◆ Math_DivideSignedWordPair()

int32_t Math_DivideSignedWordPair ( int32_t high,
uint32_t low,
int32_t divisor )
inlinestatic

Definition at line 25 of file spatial.c.