Hacking How to change basic settings from song to song

biolizardshadow

Well-Known Member
OP
Member
Joined
May 4, 2020
Messages
121
Trophies
0
Age
22
XP
298
Country
United States
I am looking to learn a little bit about arm assembly and GBA games that use the MP2K sound engine. I am mainly wanting to learn how to change sound engine settings when a new song is loaded. I already have a grasp on how to change sound engine settings in general. I apparently need to know a little bit about assembly hacking or something (at least that's what ipatix told me) and so I have come here to try and figure out what I need to do to make this happen.

I am wanting to change the number of direct sound channels that are available from one song to the next. This is to maximize performance of the game I am hacking so I don't have to worry about slow down when there is a lot going on. I could just limit the number of playable direct sounds for the entire game; however, I would like to limit this to just each song so I can cut back on direct sound channels that I am not using for each song instead of having one overarching sound limiter.

Any help would with this endevour be appreciated!
 

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,404
Country
United Kingdom
Nice intro to GBA ARM assembly
http://www.coranac.com/tonc/text/asm.htm

Covers tracing in GBA hacking,
https://www.romhacking.net/documents/361/ (emulator it goes with http://web.archive.org/web/20130215155212/http://labmaster.bios.net.nz/vba-sdl-h/ granted most will point you at no$gba or even something like https://wrongbaud.github.io/posts/ghidra-debugger/)
The settings will likely fiddle with the audio aspects of the GBA so you would likely be altering these, either at instruction level or if it grabs settings from the ROM (like it might for speed, volume...) then you will know exactly where and how it decodes them (assembly is good stuff).

gbatek http://problemkaputt.de/gbatek.htm#armcpureference obviously has everything in detail about what goes, not sure what is gentler other than that TONC link above. You could find https://web.archive.org/web/2011090...om/products/processors/classic/arm7/index.php do something for you.

I have a few worked examples in my hacking docs but they are more for the cheat side of things. https://gbatemp.net/threads/gbatemp-rom-hacking-documentation-project-new-2016-edition-out.73394/ never the less.

https://www.cs.rit.edu/~tjh8300/CowBite/CowBiteSpec.htm for the sake of my usual link list. Don't think the quirky arm everything you never wanted to know link is worth it here, http://www.heyrick.co.uk/assembler/ will be linked because why not. For the sake of future forum searchers then for GBA audio http://belogic.com/gba/ is probably where most end up.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • cearp @ cearp:
    Even sugar free isn't good, as the acid is bad enough.
  • cearp @ cearp:
    oh earlier than 15 Ken, babies, children can get decay
  • K3Nv2 @ K3Nv2:
    So dentists give. Us these caps that'll last a few years to fight thrm
  • K3Nv2 @ K3Nv2:
    Yeah but babies get a new set
  • K3Nv2 @ K3Nv2:
    Screw godfor not giving us a new adult set after we mess up
    +2
  • cearp @ cearp:
    "You listening up there big guy?"
  • BigOnYa @ BigOnYa:
    Just smoke meth, all your dental problems will go away.
    +2
  • K3Nv2 @ K3Nv2:
    Even steven
  • cearp @ cearp:
    I wonder why edibles haven't caught on for meth
  • K3Nv2 @ K3Nv2:
    Locked down from government to dispensary
  • BigOnYa @ BigOnYa:
    In India it has, can't remember what its called yuka I think, they have a crisis like we have with fentanal
  • K3Nv2 @ K3Nv2:
    That's why we need regulation :teach:
  • SylverReZ @ SylverReZ:
    @BigOnYa, Speak to Psi, he'll offer you some in Tempycoin. :tpi:
    +1
  • OGSniper @ OGSniper:
    Day after day, we drink beer, Night after night my heartbeat shows the fear
    +1
  • K3Nv2 @ K3Nv2:
    Beer can be bad for your teeth
  • OGSniper @ OGSniper:
    Teeth? What Teeth?
  • SylverReZ @ SylverReZ:
    @K3Nv2, Do crack instead. Beer is more of a depressant.
  • OGSniper @ OGSniper:
    I like taking trips without even leaving my house, if ya know what I mean.
  • K3Nv2 @ K3Nv2:
    My hygienist name is Jose I'm like fuck Juan found me
    +2
  • BigOnYa @ BigOnYa:
    Did he ask to see yo feet?
  • K3Nv2 @ K3Nv2:
    Teeth
  • K3Nv2 @ K3Nv2:
    Juan's second cousin obsessed with teeth
    +1
  • BigOnYa @ BigOnYa:
    Did you wake up with your belt un-buckled?
  • K3Nv2 @ K3Nv2:
    Let me lift you up in my chair
    K3Nv2 @ K3Nv2: Let me lift you up in my chair