Accessing sound channels volume divisor
Posted: Fri Apr 15, 2011 2:15 pm
Hi!
I realized recently that arm7/audio.h it's missing a way to access audio channels 'volume divisor' (bit 8 and 9 here) directly, without affecting other parameters.
So I think maybe it's possible to add
and also make startSound() retain these two bits value when starting a new sound...
My 2 cents.
I realized recently that arm7/audio.h it's missing a way to access audio channels 'volume divisor' (bit 8 and 9 here) directly, without affecting other parameters.
So I think maybe it's possible to add
Code: Select all
#define SCHANNEL_VOL_DIV(n) (*(vu8*)(0x04000401 + ((n)<<4)))
My 2 cents.