2021-04-01 02:07:58 +02:00
|
|
|
//
|
2021-03-28 22:49:05 +02:00
|
|
|
// Translation Unit: JAUSoundAnimator
|
2021-04-01 02:07:58 +02:00
|
|
|
//
|
2021-03-28 22:49:05 +02:00
|
|
|
|
2021-04-01 02:07:58 +02:00
|
|
|
#include "JSystem/JAudio2/JAUSoundAnimator.h"
|
2021-03-28 22:49:05 +02:00
|
|
|
|
2021-04-06 18:00:35 +02:00
|
|
|
/* 802A6F70-802A7044 2A18B0 00D4+00 0/0 1/1 0/0 .text getStartSoundIndex__17JAUSoundAnimationCFf
|
2021-04-01 02:07:58 +02:00
|
|
|
*/
|
2023-10-26 08:41:03 -04:00
|
|
|
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;
|
2021-03-28 22:49:05 +02:00
|
|
|
}
|
|
|
|
|
|
2021-04-06 18:00:35 +02:00
|
|
|
/* 802A7044-802A7114 2A1984 00D0+00 0/0 1/1 0/0 .text getEndSoundIndex__17JAUSoundAnimationCFf */
|
2023-10-26 08:41:03 -04:00
|
|
|
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;
|
2021-03-28 22:49:05 +02:00
|
|
|
}
|