summaryrefslogtreecommitdiff
path: root/libs/JSystem/src/JAudio2/JASTrack.cpp
diff options
context:
space:
mode:
authorPieter-Jan Briers <pieterjan.briers+git@gmail.com>2026-06-20 02:44:05 +0200
committerGitHub <noreply@github.com>2026-06-19 17:44:05 -0700
commit853a6addb4dba2cf7f5f336339e933011536c40e (patch)
tree49c05ec2a8ffad23361e3ccfb90e5d0b068330b7 /libs/JSystem/src/JAudio2/JASTrack.cpp
parent3f24f432fee178f226cf47ff7f49510cd5336e26 (diff)
JAudio naming pass (#3139)
* struct JASWaveArc forward declare fix * JASAramStream::THeader improvement * sizeof/offsetof unhardcodings * JAudio field name/comment pass HUGE thanks to XAYRGA for their work documenting JAudio file formats * Some more names * More names * More minor names * Attempt to fix regressions
Diffstat (limited to 'libs/JSystem/src/JAudio2/JASTrack.cpp')
-rw-r--r--libs/JSystem/src/JAudio2/JASTrack.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/libs/JSystem/src/JAudio2/JASTrack.cpp b/libs/JSystem/src/JAudio2/JASTrack.cpp
index eec0ebd644..cd2023d065 100644
--- a/libs/JSystem/src/JAudio2/JASTrack.cpp
+++ b/libs/JSystem/src/JAudio2/JASTrack.cpp
@@ -171,9 +171,9 @@ void JASTrack::assignExtBuffer(u32 index, JASSoundParams* i_soundParams) {
mChannelMgrs[index]->mSoundParams = i_soundParams;
}
-void JASTrack::setSeqData(void* param_0, u32 param_1) {
+void JASTrack::setSeqData(void* base, u32 offset) {
JUT_ASSERT(257, mStatus == STATUS_FREE);
- mSeqCtrl.start(param_0, param_1);
+ mSeqCtrl.start(base, offset);
}
void JASTrack::startSeq() {
@@ -356,7 +356,7 @@ int JASTrack::gateOn(u32 param_0, u32 i_velocity, f32 i_time, u32 i_flags) {
} else {
JASChannel* channel = channel_mgr->mChannels[0];
if (channel != NULL) {
- channel->setKey(uvar7 - channel->field_0xdc.field_0x4.field_0x01);
+ channel->setKey(uvar7 - channel->field_0xdc.mWaveInfo.mBaseKey);
channel->setVelocity(i_velocity);
channel->setUpdateTimer(update_timer);
}
@@ -545,10 +545,10 @@ void JASTrack::setOscTable(u32 osc_no, JASOscillator::Point const* i_table) {
void JASTrack::setOscAdsr(s16 param_0, s16 param_1, s16 param_2, s16 param_3, u16 i_directRelease) {
mOscParam[0] = sEnvOsc;
mOscParam[0].mTable = mOscPoint;
- mOscPoint[0]._2 = param_0;
- mOscPoint[1]._2 = param_1;
- mOscPoint[2]._2 = param_2;
- mOscPoint[2]._4 = param_3;
+ mOscPoint[0].mTime = param_0;
+ mOscPoint[1].mTime = param_1;
+ mOscPoint[2].mTime = param_2;
+ mOscPoint[2].mValue = param_3;
mDirectRelease = i_directRelease;
}