summaryrefslogtreecommitdiff
path: root/arm9/src
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 /arm9/src
parent2caca24385a10df4f0af6000d498350cbb1e92b1 (diff)
document some chatot sound functions
Diffstat (limited to 'arm9/src')
-rw-r--r--arm9/src/scrcmd_sound.c6
-rw-r--r--arm9/src/sound_chatot.c6
2 files changed, 6 insertions, 6 deletions
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());
}