Lines Matching refs:ieq

284 void android_eq_init(audio_session_t sessionId, IEqualizer* ieq) {  in android_eq_init()  argument
287 if (!android_fx_initEffectObj(sessionId, ieq->mEqEffect, &ieq->mEqDescriptor.type)) { in android_eq_init()
294 if (android::NO_ERROR == android_eq_getParam(ieq->mEqEffect, EQ_PARAM_NUM_BANDS, 0, &num)) { in android_eq_init()
295 ieq->mNumBands = num; in android_eq_init()
298 if (android::NO_ERROR == android_eq_getParam(ieq->mEqEffect, EQ_PARAM_LEVEL_RANGE, 0, range)) { in android_eq_init()
299 ieq->mBandLevelRangeMin = range[0]; in android_eq_init()
300 ieq->mBandLevelRangeMax = range[1]; in android_eq_init()
308 if (android::NO_ERROR == android_eq_getParam(ieq->mEqEffect, in android_eq_init()
310 ieq->mThis->mEngine->mEqNumPresets = numPresets; in android_eq_init()
311 ieq->mNumPresets = numPresets; in android_eq_init()
314 object_lock_exclusive(&ieq->mThis->mEngine->mObject); in android_eq_init()
316 if ((0 < numPresets) && (NULL == ieq->mThis->mEngine->mEqPresetNames)) { in android_eq_init()
317 ieq->mThis->mEngine->mEqPresetNames = (char **)new char *[numPresets]; in android_eq_init()
319 if (android::NO_ERROR == android_eq_getParam(ieq->mEqEffect, in android_eq_init()
321 ieq->mThis->mEngine->mEqPresetNames[i] = new char[strlen(name) + 1]; in android_eq_init()
322 strcpy(ieq->mThis->mEngine->mEqPresetNames[i], name); in android_eq_init()
323 SL_LOGV(" EQ init: presets = %u is %s", i, ieq->mThis->mEngine->mEqPresetNames[i]); in android_eq_init()
327 object_unlock_exclusive(&ieq->mThis->mEngine->mObject); in android_eq_init()