I'm using FMOD. how to use DSP getParameter function in C? when I used followed code, program shut down. I don't know what's wrong with my code. of course, I've implement DSP setParameter function. Now I have trouble at getParameter function. If someone knows this issuse, please give me a hint.
Here is my code I've tried before:
float Java_com_chocolate_player_equalizer_EQ_cGetEQCenter(JNIEnv *env, jobject thiz,
int band)
{
FMOD_RESULT result = FMOD_OK;
FMOD_BOOL active = 0;
if(!active){
result = FMOD_System_AddDSP(gSystem, gDSPParameq[band], 0);
}
float * freq;
char * valueStr = "";
int valueStrLength = 16;
result = FMOD_DSP_GetParameter(gDSPParameq[band], FMOD_DSP_PARAMEQ_CENTER, freq,
valueStr, valueStrLength);
return *freq;
}