0
0

Hi,

I have encountered a runtime error check failure, when I have run FMOD_Channel_SetDelay function in my program. Here is the message on the MS Visual Studio.

"Run-Time Check Failure #0 – The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention."

Could someone enlighten me on this? Thanks!

:roll:

  • You must to post comments
0
0

Are you using C# or something?

  • You must to post comments
0
0

I am using Win32 C.

I am trying to delay the song by 2 seconds. (See code below.) They are inserted inside CALLBACK WndProc procedure when a play button is pressed.

FMOD_System_CreateStream(sys001,songtitle, FMOD_SOFTWARE , 0, &songp);
FMOD_System_PlaySound(sys001,FMOD_CHANNEL_FREE,songp,false,&ch);
FMOD_Channel_SetDelay(ch,FMOD_DELAYTYPE_DSPCLOCK_START,0,96000);

I hope I didn’t miss out any other thing. I am following very closely to FMOD Programmers API documentation.

Paul
:roll:

  • You must to post comments
0
0

Can you try this in a simple modification of one of fmod’s examples first.
It might be the fact that you are calling this from a type of wndproc callback that is executing simultaneously with other fmod calls which is not allowed.

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.