mirror of
https://github.com/zeldaret/tp
synced 2026-05-24 07:11:06 -04:00
a61e3491f7
* 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
47 lines
1.2 KiB
C++
47 lines
1.2 KiB
C++
#include "JSystem/JAudio2/JAISoundParams.h"
|
|
|
|
void JAISoundParamsMove::moveVolume(f32 newValue, u32 count) {
|
|
if (count == 0) {
|
|
mParams.mVolume = newValue;
|
|
mTransition.mVolume.mCount = 0;
|
|
} else {
|
|
mTransition.mVolume.set(newValue, mParams.mVolume, count);
|
|
}
|
|
}
|
|
|
|
void JAISoundParamsMove::movePitch(f32 newValue, u32 count) {
|
|
if (count == 0) {
|
|
mParams.mPitch = newValue;
|
|
mTransition.mPitch.mCount = 0;
|
|
} else {
|
|
mTransition.mPitch.set(newValue, mParams.mPitch, count);
|
|
}
|
|
}
|
|
|
|
void JAISoundParamsMove::moveFxMix(f32 newValue, u32 count) {
|
|
if (count == 0) {
|
|
mParams.mFxMix = newValue;
|
|
mTransition.mFxMix.mCount = 0;
|
|
} else {
|
|
mTransition.mFxMix.set(newValue, mParams.mFxMix, count);
|
|
}
|
|
}
|
|
|
|
void JAISoundParamsMove::movePan(f32 newValue, u32 count) {
|
|
if (count == 0) {
|
|
mParams.mPan = newValue;
|
|
mTransition.mPan.mCount = 0;
|
|
} else {
|
|
mTransition.mPan.set(newValue, mParams.mPan, count);
|
|
}
|
|
}
|
|
|
|
void JAISoundParamsMove::moveDolby(f32 newValue, u32 count) {
|
|
if (count == 0) {
|
|
mParams.mDolby = newValue;
|
|
mTransition.mDolby.mCount = 0;
|
|
} else {
|
|
mTransition.mDolby.set(newValue, mParams.mDolby, count);
|
|
}
|
|
}
|