mirror of
https://github.com/zeldaret/mm.git
synced 2024-11-23 12:59:44 +00:00
db8f5f5ccc
* Cleanup * Cleanup variables.h * Cleanup fault headers * Some includes/headers cleanup * Libultra btn wrappers * Mark differences to original libultra headers * Remove duplicate include in fault * format * Update include/PR/os_voice.h Co-authored-by: Tom Overton <tom-overton@users.noreply.github.com> * align --------- Co-authored-by: Tom Overton <tom-overton@users.noreply.github.com>
42 lines
1.2 KiB
C
42 lines
1.2 KiB
C
#ifndef Z64VOICE_H
|
|
#define Z64VOICE_H
|
|
|
|
#include "PR/ultratypes.h"
|
|
#include "unk.h"
|
|
#include "PR/os_voice.h"
|
|
|
|
typedef struct {
|
|
/* 0x000 */ u16 words[20][15]; // 20 words, each with up to 15 syllables
|
|
/* 0x258 */ u8 numWords;
|
|
} OSVoiceDictionary; // size = 0x25C
|
|
|
|
typedef enum OSVoiceWordId {
|
|
/* 0 */ VOICE_WORD_ID_HOURS,
|
|
/* 1 */ VOICE_WORD_ID_CHEESE,
|
|
/* 2 */ VOICE_WORD_ID_WAKE_UP,
|
|
/* 3 */ VOICE_WORD_ID_SIT,
|
|
/* 4 */ VOICE_WORD_ID_MILK,
|
|
/* 5 */ VOICE_WORD_ID_HIYA,
|
|
/* 6 */ VOICE_WORD_ID_MAX,
|
|
/* -1 */ VOICE_WORD_ID_NONE = 0xFFFF
|
|
} OSVoiceWordId;
|
|
|
|
void AudioVoice_Noop(void);
|
|
void AudioVoice_ResetWord(void);
|
|
void AudioVoice_InitWord(u16 wordId);
|
|
u16 AudioVoice_GetWord(void);
|
|
void AudioVoice_Update(void);
|
|
s32 func_801A51F0(s32 errorCode);
|
|
s32 func_801A5228(OSVoiceDictionary* dict);
|
|
OSVoiceData* func_801A5390(void);
|
|
void func_801A53E8(u16 distance, u16 answerNum, u16 warning, u16 voiceLevel, u16 voiceRelLevel);
|
|
u8* AudioVoice_GetVoiceMaskPattern(void);
|
|
s32 AudioVoice_InitWordImplAlt(u16 wordId);
|
|
s32 AudioVoice_InitWordImpl(u16 wordId);
|
|
s32 func_801A5808(void);
|
|
void AudioVoice_ResetData(void);
|
|
|
|
extern OSVoiceHandle gVoiceHandle;
|
|
|
|
#endif
|