#27739 - DiscoStew - Wed Oct 20, 2004 7:44 am
Just some relevent information...
For the past few days I've been working on a VB.Net program that would allow me to take a bunch of compatible WAV files, and one by one convert them into 8AD format by accessing tepples's wav28ad prog while it writes into 2 other files, 1 ASM file that loads each 8AD file by "incbin" with a START and END label on each end, and one "C" file that sets up a const array with extra data per file so that I can access the audio by indexing. With all these files together along with code that plays these audio files through AAS, I'm trying to create an easy way to play 8AD audio.
Now for the problem...
I'm using DevKitARM for this project I working on, and I plan to use a very hefty amount of 8AD audio that could total up over 10MB (not just sfx, but streamed music too). Everything seems to work correctly when I have at most about 3MB of 8AD audio. However, when I begin to go over that amount, I get linking errors like "relocation truncated to fit: R_ARM_THM_PC22 yadayadayada", sometimes in my 8ad and other functions, and sometimes in a '$t' function. I did a forum search on "R_ARM_THM_PC22", and all I got were threads leading to function calls of IWRAM. The problem occurs when I "incbin" more than approx 3MB of data into 1 object file. I'm not sure if I have explained enough for an answer to my problem, but perhaps someone can lead me in a direction that will result in this problem being fixed.
_________________
DS - It's all about DiscoStew
For the past few days I've been working on a VB.Net program that would allow me to take a bunch of compatible WAV files, and one by one convert them into 8AD format by accessing tepples's wav28ad prog while it writes into 2 other files, 1 ASM file that loads each 8AD file by "incbin" with a START and END label on each end, and one "C" file that sets up a const array with extra data per file so that I can access the audio by indexing. With all these files together along with code that plays these audio files through AAS, I'm trying to create an easy way to play 8AD audio.
Now for the problem...
I'm using DevKitARM for this project I working on, and I plan to use a very hefty amount of 8AD audio that could total up over 10MB (not just sfx, but streamed music too). Everything seems to work correctly when I have at most about 3MB of 8AD audio. However, when I begin to go over that amount, I get linking errors like "relocation truncated to fit: R_ARM_THM_PC22 yadayadayada", sometimes in my 8ad and other functions, and sometimes in a '$t' function. I did a forum search on "R_ARM_THM_PC22", and all I got were threads leading to function calls of IWRAM. The problem occurs when I "incbin" more than approx 3MB of data into 1 object file. I'm not sure if I have explained enough for an answer to my problem, but perhaps someone can lead me in a direction that will result in this problem being fixed.
_________________
DS - It's all about DiscoStew