for the music theme, i have a question:
it is possible to do it in .ul format with an external software ?
As far as I know you can use any program that can save μLaw (it might be written as uLaw - it's the same thing). Then you should import the file without any specific conversion in assets.txt. So something like
should do the trick (raw_binary_import
could be anything except the registered keywords like sfx_rawxxx
May I ask why you need this in the first place? The reason this was added during build is to just feed the build system wav files (or whatever) and automatically get the proper format.
rb+ limits the source at 2 megas. if i could already have it in.ul, i could integrate it with in the game
Here's a secret - you ran out of RAM, but not out of ROM
. Looking at your latest rom file, the actual size of your game in rom is about 330kb. So there is still about 3.6mb free - you can put your .ul in rom space while importing and play the sound directly from there.
I have written a few words in this tutorial
but generally it's more or less changing the import type from ABS
to [b]ROM[/u] in assets.txt in the music file. So the above line would be:
...and it should work, with just one tiny caveat! The syntax to zeroplay changes ever so slightly. From
SNDZEROPLAY(channel, strptr(sfx_tete), (strptr(sfx_tete_end)-strptr(sfx_tete)+3) and 0xfffffffc, 46168/10233, Zero_Audio_8bit_muLaw|0)
SNDZEROPLAY(channel, (void *)(sfx_tete), (sfx_tete_end-sfx_tete)+3) and 0xfffffffc, 46168/10233, Zero_Audio_8bit_muLaw|0)
Hope this clears things up a bit