Files
dusklight/include/JSystem/JAudio2/JASSoundParams.h
T
Pheenoh 7154ac08e1 d_a_e_fz work, doxygen revamp (#2127)
* initial freezard actor struct + setActionMode OK

* daE_FZ_Draw

* setReflectAngle

* mBoundSoundset

* daE_FZ_Execute & execute

* demoDelete

* daE_FZ_Delete & _delete

* CreateHeap

* useHeapInit

* cc_set

* mtx_set

* action WIP

* way_gake_check

* executeRollMove

* executeMove

* draw WIP

* executeDamage

* checkpoint

* create

* checkpoint

* daE_FZ_c::executeWait

* checkpoint

* daE_FZ_c::damage_check almost done

* rm asm

* rm headers

* setup_profile WIP + doxygen update

* fix merge issues

* docs fix?

* fix2

* doxygen updates

* setup g_profile_E_FZ, profile setup script WIP

* update github actions

* update progress.md
2024-04-12 00:10:30 -06:00

72 lines
1.5 KiB
C

#ifndef JASSOUNDPARAMS_H
#define JASSOUNDPARAMS_H
#include "dolphin/types.h"
/**
* @ingroup jsystem-jaudio
*
*/
struct JASSoundParams {
/* 8029E3B0 */ void clamp();
/* 8029E47C */ void combine(JASSoundParams const&, JASSoundParams const&);
void initVolume() { mVolume = 1.0f; }
void initFxMix() { mFxMix = 0.0f; }
void initPitch() { mPitch = 1.0f; }
void initPan() { mPan = 0.5f; }
void initDolby() { mDolby = 0.0f; }
void init() {
initVolume();
initPitch();
initFxMix();
initPan();
initDolby();
}
JASSoundParams() { init(); }
void clampVolume() {
if (mVolume < 0.0f)
mVolume = 0.0f;
else if (mVolume > 1.0f)
mVolume = 1.0f;
}
void clampFxMix(void) {
if (mFxMix < 0.0f)
mFxMix = 0.0f;
else if (mFxMix > 1.0f)
mFxMix = 1.0f;
}
void clampPitch() {
if (mPitch < 0.0f)
mPitch = 0.0f;
else if (mPitch > 8.0f)
mPitch = 8.0f;
}
void clampPan() {
if (mPan < 0.0f)
mPan = 0.0f;
else if (mPan > 1.0f)
mPan = 1.0f;
}
void clampDolby() {
if (mDolby < 0.0f)
mDolby = 0.0f;
else if (mDolby > 1.0f)
mDolby = 1.0f;
}
/* 0x00 */ f32 mVolume;
/* 0x04 */ f32 mFxMix;
/* 0x08 */ f32 mPitch;
/* 0x0C */ f32 mPan;
/* 0x10 */ f32 mDolby;
}; // Size: 0x14
#endif /* JASSOUNDPARAMS_H */