Lines Matching refs:ieq
286 void android_eq_init(audio_session_t sessionId, IEqualizer* ieq) { in android_eq_init() argument
289 if (!android_fx_initEffectObj(sessionId, ieq->mEqEffect, &ieq->mEqDescriptor.type)) { in android_eq_init()
296 if (android::NO_ERROR == android_eq_getParam(ieq->mEqEffect, EQ_PARAM_NUM_BANDS, 0, &num)) { in android_eq_init()
297 ieq->mNumBands = num; in android_eq_init()
300 if (android::NO_ERROR == android_eq_getParam(ieq->mEqEffect, EQ_PARAM_LEVEL_RANGE, 0, range)) { in android_eq_init()
301 ieq->mBandLevelRangeMin = range[0]; in android_eq_init()
302 ieq->mBandLevelRangeMax = range[1]; in android_eq_init()
310 if (android::NO_ERROR == android_eq_getParam(ieq->mEqEffect, in android_eq_init()
312 ieq->mThis->mEngine->mEqNumPresets = numPresets; in android_eq_init()
313 ieq->mNumPresets = numPresets; in android_eq_init()
316 object_lock_exclusive(&ieq->mThis->mEngine->mObject); in android_eq_init()
318 if ((0 < numPresets) && (NULL == ieq->mThis->mEngine->mEqPresetNames)) { in android_eq_init()
319 ieq->mThis->mEngine->mEqPresetNames = (char **)new char *[numPresets]; in android_eq_init()
321 if (android::NO_ERROR == android_eq_getParam(ieq->mEqEffect, in android_eq_init()
323 ieq->mThis->mEngine->mEqPresetNames[i] = new char[strlen(name) + 1]; in android_eq_init()
324 strcpy(ieq->mThis->mEngine->mEqPresetNames[i], name); in android_eq_init()
325 SL_LOGV(" EQ init: presets = %u is %s", i, ieq->mThis->mEngine->mEqPresetNames[i]); in android_eq_init()
329 object_unlock_exclusive(&ieq->mThis->mEngine->mObject); in android_eq_init()