0
0

I have a problem. I’ve written a sample generator wich works fine and wanted to load up those samples into minifmod using sample_load callback.
I used the following code:
[code:230b51fv]static void SampleLoad(void *buff, int lenbytes, int numbits, int instno, int sampno);[/code:230b51fv]
But I played the result of all this I was shocked. [b:230b51fv]ALL[/b:230b51fv] of the samples were one and the same. I quickly found out that this was caused by incorrect sampno parameter to the callback. I checked the minifmod source but found nothing suspicious, this sampno is a simple loop variable. But when it gets through a callback call it gets a 0 value. Some kind of mistery. Maybe it’s a MS VC++6.0 bug?

  • You must to post comments
0
0

I had some linking problems because of this mismatch before and solved them by putting all minifmods source into the project. Now all files in the project have the same calling convention. I’ve tried all the possible conventions but nothing worked. As I said, this looks more like a mystery than a bug

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.