summaryrefslogtreecommitdiff
path: root/src/sound.c
diff options
context:
space:
mode:
authorKermalis <29823718+Kermalis@users.noreply.github.com>2018-09-22 15:38:44 -0400
committerKermalis <29823718+Kermalis@users.noreply.github.com>2018-09-22 15:38:44 -0400
commit378a1421ae9bff8c381e294d73359e5602e6bfe5 (patch)
treea4cf35d668b3d0ba4bbbf528574db545cb1c045a /src/sound.c
parent0ae6f1e4af8b8feee679775723fc22c3f3b95210 (diff)
Renaming cry voicegroups
Diffstat (limited to 'src/sound.c')
-rw-r--r--src/sound.c19
1 files changed, 6 insertions, 13 deletions
diff --git a/src/sound.c b/src/sound.c
index 36afa1a8b..b9756c1dc 100644
--- a/src/sound.c
+++ b/src/sound.c
@@ -32,15 +32,8 @@ extern struct MusicPlayerInfo gMPlay_SE1;
extern struct MusicPlayerInfo gMPlay_SE2;
extern struct MusicPlayerInfo gMPlay_SE3;
-extern struct ToneData voicegroup112[];
-extern struct ToneData voicegroup113[];
-extern struct ToneData voicegroup114[];
-extern struct ToneData voicegroup115[];
-
-extern struct ToneData voicegroup116[];
-extern struct ToneData voicegroup117[];
-extern struct ToneData voicegroup118[];
-extern struct ToneData voicegroup119[];
+extern struct ToneData gCryTable[];
+extern struct ToneData gCryTable2[];
static const struct Fanfare sFanfares[] =
{
@@ -416,19 +409,19 @@ static void PlayCryInternal(u16 species, s8 pan, s8 volume, u8 priority, u8 mode
{
case 0:
gMPlay_PokemonCry = SetPokemonCryTone(
- v0 ? &voicegroup116[index] : &voicegroup112[index]);
+ v0 ? &gCryTable2[(128 * 0) + index] : &gCryTable[(128 * 0) + index]);
break;
case 1:
gMPlay_PokemonCry = SetPokemonCryTone(
- v0 ? &voicegroup117[index] : &voicegroup113[index]);
+ v0 ? &gCryTable2[(128 * 1) + index] : &gCryTable[(128 * 1) + index]);
break;
case 2:
gMPlay_PokemonCry = SetPokemonCryTone(
- v0 ? &voicegroup118[index] : &voicegroup114[index]);
+ v0 ? &gCryTable2[(128 * 2) + index] : &gCryTable[(128 * 2) + index]);
break;
case 3:
gMPlay_PokemonCry = SetPokemonCryTone(
- v0 ? &voicegroup119[index] : &voicegroup115[index]);
+ v0 ? &gCryTable2[(128 * 3) + index] : &gCryTable[(128 * 3) + index]);
break;
}
}