In the typical 64 bit compile environment, you’ve got pointers and long data types taking up 64 bits, and int taking up 32.

Typically I like to shove a pointer into the callbacks (such as . On a 32 bit compile environment that’s not an issue because sizeof(int) == sizeof(void *). But in a LP64 environemt that will break everything.

AFAIK, the API is defined to take int:

signed char F_CALLBACKAPI streamcallback(FSOUND_STREAM *stream, void *buff, int len, int param)

I’d like it to be long param or void * param. Just a suggestion — I’m not worried about it that much, but you may as well address this sooner than later.

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.