The problem I face is that when running code from the ARM callback called by the Sound Manager API, I don't have an emulStateP or a call68KFuncP. Do you know a way of obtaining these despite the fact that the callback isn't called from PceNativeCall?
David "Aaron Ardiri" <[EMAIL PROTECTED]> wrote in message news:111761@palm-dev-forum... > > > I must be lucid and admit, it's too hard for me... > > maybe time for a new project then :) not to be hard on you; but, its > better to start with a more simpler task than dive into something like > this. programming armlets is not easy - you need to know a lot about > whats happening in order to write them correctly. > > i doubt there will be any 'easy' solution for doing armlets until > OS6 is officially out - i would compare armlet code to writing hacks. > if you have written a hack, your half way there for what you need to > know in order to write armlets. > > remember - in hacks, you can call API's :) in armlets, its not so > easy (but, you can always switch back to 68k and call a trap).. ie: > > UInt16 > FrmCustomAlert(const void *emulStateP, Call68KFuncType *call68KFunc, > UInt16 alertId, const Char *s1, const Char *s2, const Char > *s3) > { > UInt8 stack[14]; > > *(UInt16 *)(&stack[ 0]) = (UInt16)__byte_swap16(alertId); > __write_unaligned32((UInt8 *)(&stack[ 2]), s1); > __write_unaligned32((UInt8 *)(&stack[ 6]), s2); > __write_unaligned32((UInt8 *)(&stack[10]), s3); > return ((UInt16)((call68KFunc)(emulStateP, > PceNativeTrapNo(sysTrapFrmCustomAlert), > stack,14))); > } > > have you tried doing something like that? > > --- > Aaron Ardiri [EMAIL PROTECTED] > CEO - CTO +46 70 656 1143 > Mobile Wizardry http://www.mobilewizardry.com/ > > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
