I am trying to get FMOD.DLL to call my callback more than once. The definition from the C header, fmod.h:
typedef signed char (F_CALLBACKAPI *FSOUND_STREAMCALLBACK) (FSOUND_STREAM *stream, void *buff, int len, void *userdata); The Factor definition: : stream-callback ( -- object ) "char" { "void*" "void*" "int" "void*" } "stdcall" [ "callbacked" . ! drop "len: " write . 2drop 1 ! return TRUE to continue the stream ] alien-callback ; Am I returning the correct value ? It should be a signed char, but I am not sure if it's converted for me or if I have to convert it to char myself. I get the string "callbacked" printed once, but can't achieve it a second time, which would prove to me that I'm not just accidentally calling the callback myself from Factor... Any tips? Regards, Anton. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk