refac: rename func_8030D90C to sfxsource_createSfxsourceAndReturnIndex and func_8030DBB4 to sfxsource_playSfxAtVolume

Additionally rename properties/variables assigned by sfxsource_createSfxsourceAndReturnIndex to sfxsourceIdx
This commit is contained in:
Bl00D4NGEL
2024-09-22 03:10:19 +02:00
parent fbe20325c2
commit 9bd6988f99
55 changed files with 297 additions and 297 deletions

View File

@@ -4,7 +4,7 @@
/* typedefs and declarations */
typedef struct {
u8 sfxsource_index;
u8 sfxsourceIdx;
}ActorLocal_RBB_27E0;
void func_80388C20(Actor *this);
@@ -38,7 +38,7 @@ void func_80388BD0(Actor *this, s32 arg1){
void func_80388BE8(Actor *actor){
ActorLocal_RBB_27E0 *local = (ActorLocal_RBB_27E0 *)&actor->local;
if(actor->modelCacheIndex == 0x17b){
func_8030DA44(local->sfxsource_index);
func_8030DA44(local->sfxsourceIdx);
}
}
@@ -51,14 +51,14 @@ void func_80388C20(Actor *this){
this->marker->actorFreeFunc = func_80388BE8;
this->volatile_initialized = TRUE;
if(this->modelCacheIndex == 0x17B){
local->sfxsource_index = func_8030D90C();
sfxsource_set_fade_distances(local->sfxsource_index, 1000.0f, 2000.0f);
sfxsource_set_position(local->sfxsource_index, &this->position);
func_8030DBB4(local->sfxsource_index, 0.5f);
sfxsource_setSfxId(local->sfxsource_index, SFX_9F_GENERATOR_RUNNING);
func_8030DD14(local->sfxsource_index, 3);
sfxsource_setSampleRate(local->sfxsource_index, 0);
func_8030E2C4(local->sfxsource_index);
local->sfxsourceIdx = sfxsource_createSfxsourceAndReturnIndex();
sfxsource_set_fade_distances(local->sfxsourceIdx, 1000.0f, 2000.0f);
sfxsource_set_position(local->sfxsourceIdx, &this->position);
sfxsource_playSfxAtVolume(local->sfxsourceIdx, 0.5f);
sfxsource_setSfxId(local->sfxsourceIdx, SFX_9F_GENERATOR_RUNNING);
func_8030DD14(local->sfxsourceIdx, 3);
sfxsource_setSampleRate(local->sfxsourceIdx, 0);
func_8030E2C4(local->sfxsourceIdx);
}//L80388CFC
if(this->state == 0){
if(this->modelCacheIndex == 0x17B){
@@ -78,7 +78,7 @@ void func_80388C20(Actor *this){
if(360.0f <= this->roll)
this->roll -= 360.0f;
if(this->modelCacheIndex == 0x17B){
func_8030DB04(local->sfxsource_index, 25000, &this->position, 1000.0f, 2000.0f);
func_8030DB04(local->sfxsourceIdx, 25000, &this->position, 1000.0f, 2000.0f);
}
}
}