Merge pull request #1613 from Kurausukun/m4asymbols

Move M4A Track Definitions
This commit is contained in:
GriffinR 2022-01-22 21:41:37 -05:00 committed by GitHub
commit 9f2b6ab2f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 35 additions and 27 deletions

View File

@ -27,6 +27,7 @@ SECTIONS {
/* .bss starts at 0x3000000 */
src/*.o(.bss);
gflib/*.o(.bss);
data/*.o(.bss);
*libc.a:*.o(.bss*);
*libnosys.a:*.o(.bss*);

View File

@ -1,6 +1,32 @@
.equiv TRACK_SIZE, 0x50
.equiv NUM_TRACKS_BGM, 10
.equiv NUM_TRACKS_SE1, 3
.equiv NUM_TRACKS_SE2, 9
.equiv NUM_TRACKS_SE3, 1
.bss
gMPlayTrack_BGM::
.space TRACK_SIZE * NUM_TRACKS_BGM
.size gMPlayTrack_BGM, .-gMPlayTrack_BGM
gMPlayTrack_SE1::
.space TRACK_SIZE * NUM_TRACKS_SE1
.size gMPlayTrack_SE1, .-gMPlayTrack_SE1
gMPlayTrack_SE2::
.space TRACK_SIZE * NUM_TRACKS_SE2
.size gMPlayTrack_SE2, .-gMPlayTrack_SE2
gMPlayTrack_SE3::
.space TRACK_SIZE * NUM_TRACKS_SE3
.size gMPlayTrack_SE3, .-gMPlayTrack_SE3
.section .rodata
.align 2
gMPlayTable::
music_player gMPlayInfo_BGM, gMPlayTrack_BGM, 10, 0
music_player gMPlayInfo_SE1, gMPlayTrack_SE1, 3, 1
music_player gMPlayInfo_SE2, gMPlayTrack_SE2, 9, 1
music_player gMPlayInfo_SE3, gMPlayTrack_SE3, 1, 0
music_player gMPlayInfo_BGM, gMPlayTrack_BGM, NUM_TRACKS_BGM, 0
music_player gMPlayInfo_SE1, gMPlayTrack_SE1, NUM_TRACKS_SE1, 1
music_player gMPlayInfo_SE2, gMPlayTrack_SE2, NUM_TRACKS_SE2, 1
music_player gMPlayInfo_SE3, gMPlayTrack_SE3, NUM_TRACKS_SE3, 0

View File

@ -1910,27 +1910,7 @@ _081DDD90:
.align 2, 0 @ Don't pad with nop.
.bss
.bss
gDecodingBuffer: @ Used as a buffer for audio decoded from compressed DPCM
.space 0x40
.size gDecodingBuffer, .-gDecodingBuffer
.global gMPlayTrack_BGM
gMPlayTrack_BGM:
.space 0x320
.size gMPlayTrack_BGM, .-gMPlayTrack_BGM
.global gMPlayTrack_SE1
gMPlayTrack_SE1:
.space 0xF0
.size gMPlayTrack_SE1, .-gMPlayTrack_SE1
.global gMPlayTrack_SE2
gMPlayTrack_SE2:
.space 0x2D0
.size gMPlayTrack_SE2, .-gMPlayTrack_SE2
.global gMPlayTrack_SE3
gMPlayTrack_SE3:
.space 0x50
.size gMPlayTrack_SE3, .-gMPlayTrack_SE3
.space 0x40
.size gDecodingBuffer, .-gDecodingBuffer

View File

@ -55,6 +55,7 @@
.include "src/ereader_helpers.o"
.include "src/faraway_island.o"
.include "src/m4a_1.o"
.include "data/sound_data.o"
.include "src/agb_flash.o"
.include "src/siirtc.o"
.include "*libgcc.a:dp-bit.o"