Home | History | Annotate | Download | only in itf

Lines Matching full:thiz

59     IEqualizer *thiz = (IEqualizer *) self;
60 interface_lock_exclusive(thiz);
61 thiz->mEnabled = (SLboolean) enabled;
65 if (NO_EQ(thiz)) {
69 thiz->mEqEffect->setEnabled((bool) thiz->mEnabled);
73 interface_unlock_exclusive(thiz);
86 IEqualizer *thiz = (IEqualizer *) self;
87 interface_lock_exclusive(thiz);
88 SLboolean enabled = thiz->mEnabled;
93 if (NO_EQ(thiz)) {
96 *pEnabled = (SLboolean) thiz->mEqEffect->getEnabled();
100 interface_unlock_exclusive(thiz);
114 IEqualizer *thiz = (IEqualizer *) self;
116 *pNumBands = thiz->mNumBands;
132 IEqualizer *thiz = (IEqualizer *) self;
135 *pMin = thiz->mBandLevelRangeMin;
137 *pMax = thiz->mBandLevelRangeMax;
149 IEqualizer *thiz = (IEqualizer *) self;
150 if (!(thiz->mBandLevelRangeMin <= level && level <= thiz->mBandLevelRangeMax) ||
151 (band >= thiz->mNumBands)) {
154 interface_lock_exclusive(thiz);
156 thiz->mLevels[band] = level;
157 thiz->mPreset = SL_EQUALIZER_UNDEFINED;
160 if (NO_EQ(thiz)) {
164 android_eq_setParam(thiz->mEqEffect, EQ_PARAM_BAND_LEVEL, band, &level);
168 interface_unlock_exclusive(thiz);
182 IEqualizer *thiz = (IEqualizer *) self;
184 if (band >= thiz->mNumBands) {
188 interface_lock_shared(thiz);
190 level = thiz->mLevels[band];
193 if (NO_EQ(thiz)) {
197 android_eq_getParam(thiz->mEqEffect, EQ_PARAM_BAND_LEVEL, band, &level);
201 interface_unlock_shared(thiz);
217 IEqualizer *thiz = (IEqualizer *) self;
218 if (band >= thiz->mNumBands) {
223 *pCenter = thiz->mBands[band].mCenter;
227 interface_lock_shared(thiz);
228 if (NO_EQ(thiz)) {
232 android_eq_getParam(thiz->mEqEffect, EQ_PARAM_CENTER_FREQ, band, &center);
235 interface_unlock_shared(thiz);
253 IEqualizer *thiz = (IEqualizer *) self;
254 if (band >= thiz->mNumBands) {
260 *pMin = thiz->mBands[band].mMin;
262 *pMax = thiz->mBands[band].mMax;
266 interface_lock_shared(thiz);
267 if (NO_EQ(thiz)) {
271 android_eq_getParam(thiz->mEqEffect, EQ_PARAM_BAND_FREQ_RANGE, band, range);
274 interface_unlock_shared(thiz);
296 IEqualizer *thiz = (IEqualizer *) self;
306 for (band = thiz->mBands; band < &thiz->mBands[thiz->mNumBands]; ++band) {
315 bestBand = band - thiz->mBands;
322 interface_lock_shared(thiz);
323 if (NO_EQ(thiz)) {
327 android_eq_getParam(thiz->mEqEffect, EQ_PARAM_GET_BAND, frequency, &band);
330 interface_unlock_shared(thiz);
346 IEqualizer *thiz = (IEqualizer *) self;
347 interface_lock_shared(thiz);
349 SLuint16 preset = thiz->mPreset;
350 interface_unlock_shared(thiz);
355 if (NO_EQ(thiz)) {
359 android_eq_getParam(thiz->mEqEffect, EQ_PARAM_CUR_PRESET, 0, &preset);
362 interface_unlock_shared(thiz);
382 IEqualizer *thiz = (IEqualizer *) self;
383 if (index >= thiz->mNumPresets) {
386 interface_lock_exclusive(thiz);
389 for (band = 0; band < thiz->mNumBands; ++band)
390 thiz->mLevels[band] = EqualizerPresets[index].mLevels[band];
391 thiz->mPreset = index;
392 interface_unlock_exclusive(thiz);
395 if (NO_EQ(thiz)) {
399 android_eq_setParam(thiz->mEqEffect, EQ_PARAM_CUR_PRESET, 0, &index);
402 interface_unlock_shared(thiz);
417 IEqualizer *thiz = (IEqualizer *) self;
419 *pNumPresets = thiz->mNumPresets;
435 IEqualizer *thiz = (IEqualizer *) self;
437 if (index >= thiz->mNumPresets) {
440 *ppName = (SLchar *) thiz->mPresets[index].mName;
444 if (index >= thiz->mNumPresets) {
451 *ppName = (SLchar *) thiz->mThis->mEngine->mEqPresetNames[index];
479 IEqualizer *thiz = (IEqualizer *) self;
480 thiz->mItf = &IEqualizer_Itf;
481 thiz->mEnabled = SL_BOOLEAN_FALSE;
482 thiz->mPreset = SL_EQUALIZER_UNDEFINED;
486 thiz->mLevels[band] = 0;
489 thiz->mNumPresets = 0;
490 thiz->mNumBands = 0;
492 thiz->mBands = EqualizerBands;
493 thiz->mPresets = EqualizerPresets;
495 thiz->mBandLevelRangeMin = 0;
496 thiz->mBandLevelRangeMax = 0;
498 memset(&thiz->mEqDescriptor, 0, sizeof(effect_descriptor_t));
500 (void) new (&thiz->mEqEffect) android::sp<android::AudioEffect>();
507 IEqualizer *thiz = (IEqualizer *) self;
509 thiz->mEqEffect.~sp();
516 IEqualizer *thiz = (IEqualizer *) self;
517 if (!android_fx_initEffectDescriptor(SL_IID_EQUALIZER, &thiz->mEqDescriptor)) {
519 thiz->mNumPresets = 0;
520 thiz->mNumBands = 0;
521 thiz->mBandLevelRangeMin = 0;
522 thiz->mBandLevelRangeMax = 0;