Loading services/audioflinger/DeviceEffectManager.cpp +7 −2 Original line number Diff line number Diff line Loading @@ -106,11 +106,16 @@ sp<AudioFlinger::EffectHandle> AudioFlinger::DeviceEffectManager::createEffect_l if (lStatus == NO_ERROR) { lStatus = effect->addHandle(handle.get()); if (lStatus == NO_ERROR) { effect->init(patches); lStatus = effect->init(patches); if (lStatus == NAME_NOT_FOUND) { lStatus = NO_ERROR; } if (lStatus == NO_ERROR || lStatus == ALREADY_EXISTS) { mDeviceEffects.emplace(device, effect); } } } } if (enabled != NULL) { *enabled = (int)effect->isEnabled(); } Loading Loading
services/audioflinger/DeviceEffectManager.cpp +7 −2 Original line number Diff line number Diff line Loading @@ -106,11 +106,16 @@ sp<AudioFlinger::EffectHandle> AudioFlinger::DeviceEffectManager::createEffect_l if (lStatus == NO_ERROR) { lStatus = effect->addHandle(handle.get()); if (lStatus == NO_ERROR) { effect->init(patches); lStatus = effect->init(patches); if (lStatus == NAME_NOT_FOUND) { lStatus = NO_ERROR; } if (lStatus == NO_ERROR || lStatus == ALREADY_EXISTS) { mDeviceEffects.emplace(device, effect); } } } } if (enabled != NULL) { *enabled = (int)effect->isEnabled(); } Loading