0
0

I’m having trouble recording with FMOD in VC++’s Release mode. In Release mode “Optimizations” in the “C/C++” tab for “Project settings” has the default setting “Maximize speed” but if this is enabled lenbuf1 in FSOUND_Sample_Lock is always set to 0 when called. It works fine if optimizations is set to Default.
Is this by choice or a bug?

  • You must to post comments
0
0

yes, the parameters are correct. I works fine in all other modes except the one that maximizes speed. Now I’m just using “default” as optimization mode and it runs perfectly.

  • You must to post comments
0
0

hmm, found the error. Looks like a compiler bug.

I created the buffers for FSOUND_Sample_Lock like this: “BYTE* buf1,buf2;”
If I instead write “BYTE* buf1;BYTE* buf2;” it works

  • You must to post comments
0
0

Yeah, that’s just user error, I’m suprised it worked either way if that was the case.

Oh and “BYTE *buf1, *buf2;” should work, and it’s shorter, just for future refrence (little things like that are good to know, I figure). Basically what was happening originally (it apears to me at least) is that the first variable (buf1) was being declared as a pointer, while the second variable (buf2) wasn’t. I think, anyway.

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.