Files
tp/libs/JSystem/JAudio2/JAISoundParams.cpp
T
Pheenoh 7fd7d0c1f3 d_a_obj_carry work, SETUP_ACTOR macro, header cleanup (#1885)
* d_a_obj_carry work, SETUP_ACTOR macro

* rm headers, add script

* progress

* macro rename, consistent spacing
2023-08-16 12:07:52 -07:00

48 lines
1.3 KiB
C++

#include "JSystem/JAudio2/JAISoundParams.h"
#include "dolphin/types.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);
}
}