You've already forked hackerlibultra
mirror of
https://github.com/HackerN64/hackerlibultra.git
synced 2026-01-21 10:37:53 -08:00
* set build options * remove COMPARE and MDOERN_* switches * remove tools makefile * AR patching is gone too since we want a fullly decomped version * AR is modern * remove cwd changes * edit my own tool to fix compile errors * compile files generated with my own tool instead of the originals * inline modern_gcc makefile * port mips toolchain detection logic * add util.mk for find-command * remove forced AR order and strip/mdebug removal commands * add -mabi=32 to as flags * formatting changes * add clang format files * formatting changes * make libgultra CI work * install mips gcc too * add format check tools * Add formatting to CI * Add CI (#4) * make libgultra CI work * install mips gcc too * remove make setup --------- Co-authored-by: someone2639 <someone2639@gmail.com> * we don't use clang-tidy * use 120 width for formatting * a * address clang-tidy messing up * test * align consecutive macros and declarations * only align macros for now * SpaceAfterCStyleCast: false * format headers too * remove cast space switch because its false by default * pointers on left * AlignConsecutiveBitFields: true * install clang-format and clang-tidy on gh actions * and clang-tools * show diff in format check tool * make CI work --------- Co-authored-by: someone2639 <someone2639@gmail.com> 🙏
104 lines
2.5 KiB
C
104 lines
2.5 KiB
C
|
|
/*---------------------------------------------------------------------*
|
|
Copyright (C) 1998 Nintendo.
|
|
|
|
$RCSfile: os_voice.h,v $
|
|
$Revision: 1.2 $
|
|
$Date: 1999/07/13 08:36:42 $
|
|
*---------------------------------------------------------------------*/
|
|
|
|
#ifndef _OS_VOICE_H_
|
|
#define _OS_VOICE_H_
|
|
|
|
#ifdef _LANGUAGE_C_PLUS_PLUS
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <PR/ultratypes.h>
|
|
|
|
#if defined(_LANGUAGE_C) || defined(_LANGUAGE_C_PLUS_PLUS)
|
|
|
|
/**************************************************************************
|
|
*
|
|
* Type definitions
|
|
*
|
|
*/
|
|
|
|
typedef struct { /* Voice Recognition System */
|
|
OSMesgQueue* __mq; /* SI Message Queue */
|
|
int __channel; /* Controller Port # */
|
|
s32 __mode;
|
|
u8 cmd_status; /* Command Status */
|
|
} OSVoiceHandle;
|
|
|
|
typedef struct { /* Voice Recognition System */
|
|
u16 warning;
|
|
u16 answer_num; /* 0...5 */
|
|
u16 voice_level;
|
|
u16 voice_sn;
|
|
u16 voice_time;
|
|
u16 answer[5];
|
|
u16 distance[5];
|
|
} OSVoiceData;
|
|
|
|
#endif /* defined(_LANGUAGE_C) || defined(_LANGUAGE_C_PLUS_PLUS) */
|
|
|
|
/**************************************************************************
|
|
*
|
|
* Global definitions
|
|
*
|
|
*/
|
|
|
|
/* definition for Voice Recognition System */
|
|
|
|
#define VOICE_WARN_TOO_SMALL 0x0400
|
|
#define VOICE_WARN_TOO_LARGE 0x0800
|
|
#define VOICE_WARN_NOT_FIT 0x4000
|
|
#define VOICE_WARN_TOO_NOISY 0x8000
|
|
|
|
#define VOICE_STATUS_READY 0
|
|
#define VOICE_STATUS_START 1
|
|
#define VOICE_STATUS_CANCEL 3
|
|
#define VOICE_STATUS_BUSY 5
|
|
#define VOICE_STATUS_END 7
|
|
|
|
#if defined(_LANGUAGE_C) || defined(_LANGUAGE_C_PLUS_PLUS)
|
|
|
|
/**************************************************************************
|
|
*
|
|
* Macro definitions
|
|
*
|
|
*/
|
|
|
|
/**************************************************************************
|
|
*
|
|
* Extern variables
|
|
*
|
|
*/
|
|
|
|
/**************************************************************************
|
|
*
|
|
* Function prototypes
|
|
*
|
|
*/
|
|
|
|
/* Voice Recognition System */
|
|
extern s32 osVoiceInit(OSMesgQueue*, OSVoiceHandle*, int);
|
|
extern s32 osVoiceCheckWord(u8* data);
|
|
extern s32 osVoiceClearDictionary(OSVoiceHandle*, u8);
|
|
extern s32 osVoiceControlGain(OSVoiceHandle*, s32, s32);
|
|
extern s32 osVoiceSetWord(OSVoiceHandle*, u8*);
|
|
extern s32 osVoiceStartReadData(OSVoiceHandle*);
|
|
extern s32 osVoiceStopReadData(OSVoiceHandle*);
|
|
extern s32 osVoiceGetReadData(OSVoiceHandle*, OSVoiceData*);
|
|
extern s32 osVoiceMaskDictionary(OSVoiceHandle*, u8*, int);
|
|
extern void osVoiceCountSyllables(u8*, u32*);
|
|
|
|
#endif /* defined(_LANGUAGE_C) || defined(_LANGUAGE_C_PLUS_PLUS) */
|
|
|
|
#ifdef _LANGUAGE_C_PLUS_PLUS
|
|
}
|
|
#endif
|
|
|
|
#endif /* !_OS_VOICE_H_ */
|