From a3b964eca0b1acbb52396c7ed1d5ed4abdd0a39d Mon Sep 17 00:00:00 2001 From: Stephen Simpson Date: Mon, 10 Oct 2011 23:38:41 -0500 Subject: fixed offset for Sound Class in soundPlayer.S --- src/soundPlayer.S | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/soundPlayer.S b/src/soundPlayer.S index 0fa028a..5304330 100644 --- a/src/soundPlayer.S +++ b/src/soundPlayer.S @@ -20,6 +20,7 @@ .extern YetAnotherSoundPlayer .extern CheckIfPlayingSound .extern StopSound +.extern BufferToCheckIfPlaying .align 4 @@ -49,8 +50,9 @@ PlaySound: bl ConvertStagePositionIntoScreenPosition__Maybe # Checks if the passed sound is already playing - lis r4, 0x8043 - lwz r3, 0xA768(r4) + lis r4, BufferToCheckIfPlaying@h + ori r4, r4, BufferToCheckIfPlaying@l + lwz r3, 0(r4) mr r4, r20 bl CheckIfPlayingSound @@ -82,4 +84,4 @@ StopSound: lwz r3, 0xA768(r13) b StopSound - \ No newline at end of file + -- cgit v1.2.3