Thank Peter!
i just did a#define OSType unsigned long
and i get rid of those errors.
Regarding fiddle~ i'm takin' the occasion to better learn MaxSDK, and i'm still trying to follow the challenge to try to restructure the code for "modern" standards. If i won't get success i'll ask again for help!
Now i'm trying to compile bonk~ to (and the next will be sigmund~)
Now i have only one error and a bunch of warnings.
Error 10 is relative to this linegp->g_invec = (*(sp++))->s_vec;
Error 10 error C4133: β=β : incompatible types β from βt_sample *β to βt_float *β C:\SDKs\max-sdk-7.0.3\source\audio\bonk~\bonk~.c 514 1 bonk~
And a bunch of warnings (those about data loss i guess aren't so important)
bonk~ code attached as a zip file
Warning 1 warning C4005: 'getbytes' : macro redefinition C:\SDKs\max-sdk-7.0.3\source\audio\bonk~\bonk~.c 47 1 bonk~
Warning 2 warning C4005: 'freebytes' : macro redefinition C:\SDKs\max-sdk-7.0.3\source\audio\bonk~\bonk~.c 48 1 bonk~
Warning 3 warning C4305: 'initializing' : truncation from 'double' to 'float' C:\SDKs\max-sdk-7.0.3\source\audio\bonk~\bonk~.c 93 1 bonk~
Warning 4 warning C4305: '=' : truncation from 'double' to 'float' C:\SDKs\max-sdk-7.0.3\source\audio\bonk~\bonk~.c 218 1 bonk~
Warning 5 warning C4244: '=' : conversion from 'double' to 'float', possible loss of data C:\SDKs\max-sdk-7.0.3\source\audio\bonk~\bonk~.c 250 1 bonk~
Warning 6 warning C4244: '*=' : conversion from 'double' to 'float', possible loss of data C:\SDKs\max-sdk-7.0.3\source\audio\bonk~\bonk~.c 257 1 bonk~
Warning 7 warning C4305: '=' : truncation from 'double' to 'float' C:\SDKs\max-sdk-7.0.3\source\audio\bonk~\bonk~.c 289 1 bonk~
Warning 8 warning C4305: 'initializing' : truncation from 'double' to 'float' C:\SDKs\max-sdk-7.0.3\source\audio\bonk~\bonk~.c 325 1 bonk~
Warning 9 warning C4244: '+=' : conversion from 'double' to 'float', possible loss of data C:\SDKs\max-sdk-7.0.3\source\audio\bonk~\bonk~.c 428 1 bonk~
Error 10 error C4133: '=' : incompatible types - from 't_sample *' to 't_float *' C:\SDKs\max-sdk-7.0.3\source\audio\bonk~\bonk~.c 514 1 bonk~
Warning 11 warning C4244: '=' : conversion from 't_floatarg' to 'float', possible loss of data C:\SDKs\max-sdk-7.0.3\source\audio\bonk~\bonk~.c 524 1 bonk~
Warning 12 warning C4244: '=' : conversion from 't_floatarg' to 'float', possible loss of data C:\SDKs\max-sdk-7.0.3\source\audio\bonk~\bonk~.c 525 1 bonk~
Warning 13 warning C4244: 'initializing' : conversion from 't_floatarg' to 'int', possible loss of data C:\SDKs\max-sdk-7.0.3\source\audio\bonk~\bonk~.c 530 1 bonk~
Warning 14 warning C4244: '=' : conversion from 't_floatarg' to 'float', possible loss of data C:\SDKs\max-sdk-7.0.3\source\audio\bonk~\bonk~.c 535 1 bonk~
Warning 15 warning C4244: '=' : conversion from 't_floatarg' to 'float', possible loss of data C:\SDKs\max-sdk-7.0.3\source\audio\bonk~\bonk~.c 542 1 bonk~
Warning 16 warning C4244: '=' : conversion from 't_floatarg' to 'float', possible loss of data C:\SDKs\max-sdk-7.0.3\source\audio\bonk~\bonk~.c 548 1 bonk~
Warning 17 warning C4244: 'initializing' : conversion from 't_floatarg' to 'int', possible loss of data C:\SDKs\max-sdk-7.0.3\source\audio\bonk~\bonk~.c 601 1 bonk~
Warning 18 warning C4244: 'initializing' : conversion from 'double' to 'float', possible loss of data C:\SDKs\max-sdk-7.0.3\source\audio\bonk~\bonk~.c 667 1 bonk~
Warning 19 warning C4244: '=' : conversion from 'double' to 'float', possible loss of data C:\SDKs\max-sdk-7.0.3\source\audio\bonk~\bonk~.c 668 1 bonk~
Warning 20 warning C4244: '=' : conversion from 'double' to 'float', possible loss of data C:\SDKs\max-sdk-7.0.3\source\audio\bonk~\bonk~.c 669 1 bonk~
Warning 21 warning C4244: '=' : conversion from 'double' to 'float', possible loss of data C:\SDKs\max-sdk-7.0.3\source\audio\bonk~\bonk~.c 673 1 bonk~
Warning 22 warning C4996: 'Atom': was declared deprecated C:\SDKs\max-sdk-7.0.3\source\audio\bonk~\bonk~.c 885 1 bonk~
Warning 23 warning C4996: 'Atom': was declared deprecated C:\SDKs\max-sdk-7.0.3\source\audio\bonk~\bonk~.c 905 1 bonk~
Warning 24 warning C4026: function declared with formal parameter list C:\SDKs\max-sdk-7.0.3\source\audio\bonk~\bonk~.c 1031 1 bonk~
Warning 25 warning C4028: formal parameter 1 different from declaration C:\SDKs\max-sdk-7.0.3\source\audio\bonk~\bonk~.c 1032 1 bonk~
Warning 26 warning C4013: 'rescopy' undefined; assuming extern returning int C:\SDKs\max-sdk-7.0.3\source\audio\bonk~\bonk~.c 1049 1 bonk~
Warning 27 warning C4244: 'return' : conversion from 'double' to 'float', possible loss of data C:\SDKs\max-sdk-7.0.3\source\audio\bonk~\bonk~.c 1073 1 bonk~