summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Calixte <remicalixte.rmc@gmail.com>2021-07-27 21:49:23 +0200
committerRémi Calixte <remicalixte.rmc@gmail.com>2021-07-27 21:49:23 +0200
commit610a801e1793ae3242aee3855bceae30aff019f6 (patch)
treec8beb0743816d38afd271314d3b0354718314177
parent2caca24385a10df4f0af6000d498350cbb1e92b1 (diff)
document some chatot sound functions
-rw-r--r--arm9/global.inc6
-rw-r--r--arm9/src/scrcmd_sound.c6
-rw-r--r--arm9/src/sound_chatot.c6
-rw-r--r--include/sound_chatot.h6
4 files changed, 12 insertions, 12 deletions
diff --git a/arm9/global.inc b/arm9/global.inc
index d638e601..365bea86 100644
--- a/arm9/global.inc
+++ b/arm9/global.inc
@@ -366,9 +366,9 @@
.extern FUN_02005D20
.extern FUN_02005D48
.extern FUN_02005DFC
-.extern FUN_02005E28
-.extern FUN_02005E64
-.extern FUN_02005E6C
+.extern Chatot_startRecording
+.extern Chatot_stopRecording
+.extern Chatot_saveRecording
.extern FUN_02005E80
.extern FUN_02005E90
.extern FUN_02005EE0
diff --git a/arm9/src/scrcmd_sound.c b/arm9/src/scrcmd_sound.c
index b2bba9a6..94e7b69d 100644
--- a/arm9/src/scrcmd_sound.c
+++ b/arm9/src/scrcmd_sound.c
@@ -211,7 +211,7 @@ THUMB_FUNC BOOL ScrCmd_StartChatotRecord(struct ScriptContext* ctx)
{
u16* ret_ptr = GetVarPointer(ctx->unk80, ScriptReadHalfword(ctx));
- if (FUN_02005E28() == 0)
+ if (Chatot_startRecording() == 0)
{
*ret_ptr = 1;
return FALSE;
@@ -226,14 +226,14 @@ THUMB_FUNC BOOL ScrCmd_StartChatotRecord(struct ScriptContext* ctx)
THUMB_FUNC BOOL ScrCmd_StopChatotRecord(struct ScriptContext* ctx)
{
#pragma unused(ctx)
- FUN_02005E64();
+ Chatot_stopRecording();
return TRUE;
}
THUMB_FUNC BOOL ScrCmd_SaveChatotCry(struct ScriptContext* ctx)
{
void* unk = Sav2_Chatot_get(ctx->unk80->saveBlock2);
- FUN_02005E6C(unk);
+ Chatot_saveRecording(unk);
return TRUE;
}
diff --git a/arm9/src/sound_chatot.c b/arm9/src/sound_chatot.c
index c2a4e913..085b6104 100644
--- a/arm9/src/sound_chatot.c
+++ b/arm9/src/sound_chatot.c
@@ -91,7 +91,7 @@ THUMB_FUNC void FUN_02005DFC()
*r4 = 0;
}
-THUMB_FUNC u32 FUN_02005E28()
+THUMB_FUNC u32 Chatot_startRecording()
{
struct MIC_SamplingData st0;
@@ -110,12 +110,12 @@ THUMB_FUNC u32 FUN_02005E28()
return GF_MIC_StartAutoSampling(&st0);
}
-THUMB_FUNC void FUN_02005E64()
+THUMB_FUNC void Chatot_stopRecording()
{
GF_MIC_StopAutoSampling();
}
-THUMB_FUNC void FUN_02005E6C(struct SaveChatotSoundClip *param0)
+THUMB_FUNC void Chatot_saveRecording(struct SaveChatotSoundClip *param0)
{
Chatot_Encode(param0, FUN_02004DB4());
}
diff --git a/include/sound_chatot.h b/include/sound_chatot.h
index fd7184cf..cff116a2 100644
--- a/include/sound_chatot.h
+++ b/include/sound_chatot.h
@@ -8,9 +8,9 @@ BOOL FUN_02005CFC();
BOOL FUN_02005D20(struct SaveChatotSoundClip *param0);
u32 FUN_02005D48(struct SaveChatotSoundClip *param0, u32 param1, s32 param2, s32 param3);
void FUN_02005DFC();
-u32 FUN_02005E28();
-void FUN_02005E64();
-void FUN_02005E6C(struct SaveChatotSoundClip *param0);
+u32 Chatot_startRecording();
+void Chatot_stopRecording();
+void Chatot_saveRecording(struct SaveChatotSoundClip *param0);
void FUN_02005E80(u8 param0);
void FUN_02005E90(struct SaveChatotSoundClip *param0, u32 param1, s32 param2, s32 param3);
u32 FUN_02005EE0(struct SaveChatotSoundClip *param0);