Files
tww/include/JSystem/JAudio/JAISound.h
T
2024-01-14 01:19:11 -08:00

188 lines
5.4 KiB
C++

#ifndef JAISOUND_H
#define JAISOUND_H
#include "dolphin/types.h"
namespace JAInter {
class Actor;
class SeParameter;
class SeqParameter;
class StreamParameter;
}
class JAISound {
public:
JAISound();
virtual f32 setPositionDopplarCommon(u32);
virtual f32 setDistanceVolumeCommon(f32, u8);
virtual f32 setDistancePanCommon();
virtual void setSeDistanceParameters();
virtual void setSeDistanceVolume(u8);
virtual void setSeDistancePan(u8);
virtual void setSeDistancePitch(u8);
virtual void setSeDistanceFxmix(u8);
virtual void setSeDistanceFir(u8);
virtual void setSeDistanceDolby(u8);
virtual void setSePositionDopplar();
u8 getSeCategoryNumber();
int getSwBit();
int checkSwBit(u32);
u8 getInfoPriority();
void clearMainSoundPPointer();
void start(u32);
void stop(u32);
void setVolume(f32, u32, u8);
void setPan(f32, u32, u8);
void setPitch(f32, u32, u8);
void setFxmix(f32, u32, u8);
void setDolby(f32, u32, u8);
void setTempoProportion(f32, u32);
void setPortData(u8, u16);
void setPrepareFlag(u8);
void setSeqInterVolume(u8, f32, u32);
void setSeqInterPan(u8, f32, u32);
void setSeqInterPitch(u8, f32, u32);
void setSeqInterFxmix(u8, f32, u32);
void setSeqInterDolby(u8, f32, u32);
void setSeqTempoProportion(f32, u32);
void setSeqPortData(u8, u16, u32);
void setTrackVolume(u8, f32, u32);
void setTrackInterruptSwitch(u8, u8);
void setTrackPortData(u8, u8, u16);
void setSeInterRandomPara(f32*, u32, f32, f32);
void setSeInterVolume(u8, f32, u32, u8);
void setSeInterPan(u8, f32, u32, u8);
void setSeInterPitch(u8, f32, u32, f32);
void setSeInterFxmix(u8, f32, u32, u8);
void setSeInterDolby(u8, f32, u32, u8);
void setSePortData(u8, u16);
void setStreamInterVolume(u8, f32, u32);
void setStreamInterPitch(u8, f32, u32);
void setStreamInterPan(u8, f32, u32);
void setStreamPrepareFlag(u8);
void setPauseMode(u8, u8);
void setSeqPrepareFlag(u8);
f32 getSeqInterVolume(u8);
f32 getStreamInterVolume(u8);
JAInter::SeqParameter* getSeqParameter();
JAInter::SeParameter* getSeParameter();
JAInter::StreamParameter* getStreamParameter();
int getTrackPortRoute(u8, u8);
u32 checkSoundHandle(u32, void*);
void initParameter(JAISound**, JAInter::Actor*, u32, u32, u8, void*);
// TODO
void decWait() {}
void getAct() {}
void getAdjustPriority() {}
void getFadetime() {}
void getID() {}
void getInfoPointer() {}
void getMapInfo() {}
void getNextSound() {}
void getPlayGameFrameCounter() {}
void getPlayer() {}
void getPositionInfo() {}
void getPrevSound() {}
void getPriority() {}
void getStatus() {}
void getTrack() {}
void getTrans() {}
void getWait() {}
void incPlayGameFrameCounter() {}
void setCustomParameterPointer(void*) {}
void setDemoFxmix(f32, u32) {}
void setDemoPan(f32, u32) {}
void setDemoPitch(f32, u32) {}
void setDemoVolume(f32, u32) {}
void setFadetime(u32) {}
void setID(u32) {}
void setMainSoundPPointer(JAISound**) {}
void setNextSound(JAISound*) {}
void setPrevSound(JAISound*) {}
void setPriority(u32) {}
void setRandom(u8) {}
void setSeInterDolbyU7(u8, u8, u32, u8) {}
void setSeInterFxmixU7(u8, u8, u32, u8) {}
void setSeqInterVolumeU7(u8, u8, u32) {}
void setStatus(u8) {}
void setTrack(u8) {}
void setTrackVolumeU7(u8, u8, u32) {}
void setVolumeU7(u8, u32, u8) {}
void setWait(u8) {}
struct PositionInfo_t {
f32 field_0x0;
u8 field_0x4[0x8 - 0x4];
f32 field_0x8;
u8 field_0xc[0x18 - 0xc];
f32 field_0x18;
};
/* 0x04 */ u8 field_0x4;
/* 0x05 */ u8 field_0x5;
/* 0x06 */ u8 field_0x6;
/* 0x07 */ u8 field_0x7;
/* 0x08 */ u8 field_0x8;
/* 0x09 */ u8 field_0x9;
/* 0x0a */ short field_0xa;
/* 0x0c */ int field_0xc;
/* 0x10 */ int field_0x10;
/* 0x14 */ u32 field_0x14;
/* 0x18 */ int field_0x18;
/* 0x1c */ int field_0x1c;
/* 0x20 */ PositionInfo_t* mPositionInfo;
/* 0x24 */ void* field_0x24;
/* 0x28 */ int field_0x28;
/* 0x2C */ int field_0x2c;
/* 0x30 */ JAISound* field_0x30;
/* 0x34 */ JAISound* field_0x34;
/* 0x38 */ JAISound** field_0x38;
/* 0x3C */ void* field_0x3c;
/* 0x40 */ void* field_0x40;
};
namespace JAInter {
class MoveParaSet {
public:
MoveParaSet(f32 param_1=1.0f) { init(param_1); }
int set(f32 param_1, u32 param_2);
bool move();
void init(f32 param_1) {
field_0x4 = param_1;
field_0x0 = param_1;
field_0xc = 0;
}
/* 0x00 */ f32 field_0x0;
/* 0x04 */ f32 field_0x4;
/* 0x08 */ f32 field_0x8;
/* 0x0C */ int field_0xc;
};
class MoveParaSetInitHalf : public MoveParaSet {
public:
MoveParaSetInitHalf() : MoveParaSet(0.5f) {}
};
class MoveParaSetInitZero : public MoveParaSet {
public:
MoveParaSetInitZero() : MoveParaSet(0.0f) {}
};
class LinkSound {
public:
void init(JAISound* param_1, u32 param_2);
JAISound* getSound();
void releaseSound(JAISound* param_1);
/* 0x00 */ JAISound* field_0x0;
/* 0x04 */ JAISound* field_0x4;
/* 0x08 */ JAISound* Buffer;
};
}
#endif /* JAISOUND_H */