move m4a track definitions

This commit is contained in:
Kurausukun 2022-01-22 19:37:46 -05:00
parent 79dfac92c9
commit a83e41b2cc
3 changed files with 36 additions and 25 deletions

View File

@ -1,6 +1,36 @@
.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
.global gMPlayTrack_BGM
gMPlayTrack_BGM:
.space TRACK_SIZE * NUM_TRACKS_BGM
.size gMPlayTrack_BGM, .-gMPlayTrack_BGM
.global gMPlayTrack_SE1
gMPlayTrack_SE1:
.space TRACK_SIZE * NUM_TRACKS_SE1
.size gMPlayTrack_SE1, .-gMPlayTrack_SE1
.global gMPlayTrack_SE2
gMPlayTrack_SE2:
.space TRACK_SIZE * NUM_TRACKS_SE2
.size gMPlayTrack_SE2, .-gMPlayTrack_SE2
.global gMPlayTrack_SE3
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

@ -1914,23 +1914,3 @@ _081DDD90:
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

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"