Can you give us more info? Like, what FMOD functions are you calling when it crashes? Are you using streams? Samples? DSP units? endcallbacks? Have you tried cutting things out of your program until it stops crashing? Making a small test case that reproduces the crash?
We’re not psychic y’know 😀
oh sry, maybe i should think before i write something 😉
ok, it must have to do something with the
[b:35njojyq]FSOUND_Record_StartSample [/b:35njojyq](m_pSample, true) function. (and i think only when setting the second param to true)
I call this when staring the app and then i don’t call any FMOD functions.
Setting the second param to false or not calling the function prevents the app from crashing.
I think it only occurs when messages are send to the app, i.e. when i minimize or maximize the windows. But also when i stop and start a mp3 in e.g. winamp it sometimes crashes…
[added example code ]
FSOUND_Init (44100, 1, 0);
g_pSample = FSOUND_Sample_Alloc( 0, 1024, FSOUND_16BITS | FSOUND_SIGNED | FSOUND_STEREO, 44100, 10, 0, 1);
FSOUND_Record_StartSample (g_pSample, true);
void keyboard(unsigned char key, int x, int y)
int main(int argc,char *argv)
glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH);
glutDisplayFunc(display); glutIdleFunc(display); glutKeyboardFunc(keyboard); init(); glutMainLoop(); return 0;
- FakX answered 13 years ago
Please login first to submit.