mirror of
https://github.com/HarbourMasters/2ship2harkinian.git
synced 2024-11-28 00:30:37 +00:00
587d12e3cb
* thread, scene and interface * non header stuff * fix missing stuff * z64sound_source.h * collision_check.h * Update include/z64sound_source.h Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> * Update include/z64scene.h Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> * Update include/z64thread.h Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> * review * review * Update src/code/z_collision_check.c Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> * Update src/code/z_sound_source.c Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> --------- Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com>
25 lines
684 B
C
25 lines
684 B
C
#ifndef Z64SOUND_SOURCE_H
|
|
#define Z64SOUND_SOURCE_H
|
|
|
|
#include "ultra64.h"
|
|
#include "z64math.h"
|
|
|
|
struct PlayState;
|
|
|
|
typedef struct {
|
|
/* 0x00 */ u8 countdown;
|
|
/* 0x01 */ u8 playSfxEachFrame;
|
|
/* 0x02 */ u16 sfxId;
|
|
/* 0x04 */ Vec3f worldPos;
|
|
/* 0x10 */ Vec3f projectedPos;
|
|
} SoundSource; // size = 0x1C
|
|
|
|
#define SOUND_SOURCE_COUNT 16
|
|
|
|
void SoundSource_InitAll(struct PlayState* play);
|
|
void SoundSource_UpdateAll(struct PlayState* play);
|
|
void SoundSource_PlaySfxAtFixedWorldPos(struct PlayState* play, Vec3f* worldPos, u32 duration, u16 sfxId);
|
|
void SoundSource_PlaySfxEachFrameAtFixedWorldPos(struct PlayState* play, Vec3f* worldPos, u32 duration, u16 sfxId);
|
|
|
|
#endif
|