mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-15 05:40:55 -04:00
178194ccb2
* switch to dtk setup * some cleanup / fixes * cleanup d_a_alink literals * Restore doxygen, update CI & README.md (#1) * Fix build image ref (#2) --------- Co-authored-by: Luke Street <luke@street.dev>
28 lines
724 B
C++
28 lines
724 B
C++
//
|
|
// Translation Unit: JAUSoundAnimator
|
|
//
|
|
|
|
#include "JSystem/JAudio2/JAUSoundAnimator.h"
|
|
|
|
/* 802A6F70-802A7044 2A18B0 00D4+00 0/0 1/1 0/0 .text getStartSoundIndex__17JAUSoundAnimationCFf
|
|
*/
|
|
int JAUSoundAnimation::getStartSoundIndex(f32 param_0) const {
|
|
int i;
|
|
for (i = 0; i < getNumSounds(); i++) {
|
|
if (getSound(i)->field_0x04 >= param_0) {
|
|
break;
|
|
}
|
|
}
|
|
return i;
|
|
}
|
|
|
|
/* 802A7044-802A7114 2A1984 00D0+00 0/0 1/1 0/0 .text getEndSoundIndex__17JAUSoundAnimationCFf */
|
|
int JAUSoundAnimation::getEndSoundIndex(f32 param_0) const {
|
|
int i;
|
|
for (i = 0; i < getNumSounds(); i++) {
|
|
if (getSound(i)->field_0x04 > param_0) {
|
|
break;
|
|
}
|
|
}
|
|
return i;
|
|
} |