mirror of
https://github.com/zeldaret/tww.git
synced 2026-05-31 09:21:34 -04:00
138 lines
4.0 KiB
C++
138 lines
4.0 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();
|
|
|
|
int 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);
|
|
int checkSoundHandle(u32, void*);
|
|
void initParameter(JAISound**, JAInter::Actor*, u32, u32, u8, void*);
|
|
|
|
/* 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 */ void* field_0x20;
|
|
/* 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) {
|
|
field_0x4 = param_1;
|
|
field_0x0 = param_1;
|
|
field_0xc = 0;
|
|
}
|
|
int set(f32 param_1, u32 param_2);
|
|
bool move();
|
|
|
|
/* 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* field_0x8;
|
|
};
|
|
}
|
|
|
|
#endif /* JAISOUND_H */
|