Files
tp/include/Z2AudioLib/Z2SpeechMgr2/Z2SpeechMgr2.h
T
a072e71c33 Z2AudioLib misc decomp (#75)
* Z2SoundHandles: decomp portions

* start decomping: Z2SpeechMgr2, Z2SoundHandles

* Z2SoundHandles::stopAllSounds(): ok

* Z2SoundHandles::getHandleUserData(): ok

* Z2SoundInfo: header

* Z2SoundObjBase::framework(): ok

* Z2SoundObjBase::Z2SoundObjBase(), Z2SoundObjBase::init(): ok

* Z2SoundObjBase::~Z2SoundObjBase(): ok

* Z2SoundObjBase::stopOK(): ok

* Z2SoundObjBase::stopOK, incomplete Z2SoundObjBase::dispose()

* clang-format

* Z2SoundObjBase::dispose(): ok

* JAISound::operator->(): null assert

* JAIAudience: stub

* Z2SoundObject::{init, deleteObject, isAlive}: ok

* Z2SeMgr: elaborate struct (and decl JAISoundHandles to support this)

* start subclassing Z2SoundObjBase; nonmatching Z2SoundObjSimple::init()

* Z2SeMGr::{incrCrowdSize, decrCrowdSize}: ok

* Z2MultiSeMgr::resetMultiSePos(): ok

* Z2WolfHowlMgr.h: decls

* Z2SoundStarter: move to decls and fix postprocess.py symbol pass

* Z2AudioArcLoader: decls

* Z2SoundObjMgr: ok some fns
- deleteEnemyAll()
- isTwilightBattle()
- setGhostEnemyState()

additionally elaborates parts of the Z2Creature hierarchy

* delete unused .s files and add tool to find them (only runs on linux)

* run clang-format

* postprocess.py: comment out debugging

* add python step to ok-check workflow

* address review comments

* address review comments

Co-authored-by: notyourav <65437533+notyourav@users.noreply.github.com>

Co-authored-by: Pheenoh <pheenoh@gmail.com>
Co-authored-by: notyourav <65437533+notyourav@users.noreply.github.com>
2021-01-21 23:16:51 -05:00

42 lines
904 B
C++

#ifndef __Z2SPEECHMGR2_H__
#define __Z2SPEECHMGR2_H__
#include "JSystem/JAudio2/JAISound/JAISound.h"
#include "JSystem/JMath/random.h"
#include "dolphin/types.h"
class Z2SpeechStarter {
public:
Z2SpeechStarter();
private:
void* __vt; //! @todo vtable
};
class Z2SpeechMgr2 {
public:
Z2SpeechMgr2();
private:
JAISoundHandle mSoundHandle1;
JAISoundHandle mSoundHandle2;
JMath::TRandom_fast_ mRandom;
Z2SpeechStarter mSpeechStarter;
u16 field_0x10[500];
s16 field_0x3f8;
s16 mTextCount;
u16 field_0x3fc;
u8 field_0x3fe;
u8 field_0x3ff;
u8 field_0x400;
u8 field_0x401;
u8 field_0x402[64];
u16 field_0x442;
};
//! @todo: we need to eventually figure out how to get JASGlobalInstance working once
//! const placement is fixed.
extern Z2SpeechMgr2* lbl_80450B70; // m_Do_main::JASGlobalInstance<Z2SpeechMgr2>::sInstance
#endif