Re: ADPCM sample
Posted: Tue Jun 28, 2011 5:44 pm
mysoft, if you can send me your buildable project zipped up I will investigate why it sounds so crappy in desmume. advanced spu logic is supposed to be flawless.
well, i see... but the project is made on freebasic using the "-gen gcc" switch, that uses GCC as a "high level assembler", because that's what i'm doing, porting freebasic runtlime/gfxlib to DS... so the generated C looks something similar to this:zeromus wrote:mysoft, if you can send me your buildable project zipped up I will investigate why it sounds so crappy in desmume. advanced spu logic is supposed to be flawless.
Code: Select all
static void fb_ctor__main( void )
{
string BORDER$;
string LETTERS$[5];
TMP$117 tmp$116$;
string TEXT$[5];
TMP$119 tmp$118$;
string MESSAGE$;
integer BORDERPOSI$;
integer TEXTPOSI$;
integer TEXTLEN$;
label$0:;
*(integer*)((ubyte *)67108864) = ((integer)65536);
*(integer*)((ubyte *)67112960) = ((integer)65536);
*(ubyte*)((ubyte *)67109440) = ((ubyte)129);
*(ubyte*)((ubyte *)67109442) = ((ubyte)132);
FBKEYBOARD$ = ((KEYBOARD*)0);
consoleInit( (PRINTCONSOLE *)&FBTOPCONSOLE$, (integer)3, (integer)1, (integer)65536, (integer)31, (integer)0, (integer)((-0) - 1), (integer)((-0) - 1) );
consoleInit( (PRINTCONSOLE *)&FBBOTTOMCONSOLE$, (integer)3, (integer)1, (integer)65536, (integer)31, (integer)0, (integer)0, (integer)((-0) - 1) );
irqSet( (integer)2, &HBLANKINTERRUPT );
irqSet( (integer)1, &VBLANKINTERRUPT );
irqEnable( (integer)2 );
irqEnable( (integer)1 );
soundEnable( );
keysSetRepeat( (ubyte)40, (ubyte)3 );
FBCONSOLE$ = ((PRINTCONSOLE *)&FBTOPCONSOLE$);