Loading media/libeffects/lvm/wrapper/Bundle/EffectBundle.cpp +16 −0 Original line number Diff line number Diff line Loading @@ -650,6 +650,9 @@ int LvmBundle_init(EffectContext *pContext){ params.SpeakerType = LVM_HEADPHONES; pContext->pBundledContext->SampleRate = LVM_FS_44100; #ifdef SUPPORT_MC pContext->pBundledContext->ChMask = AUDIO_CHANNEL_OUT_STEREO; #endif /* Concert Sound parameters */ params.VirtualizerOperatingMode = LVM_MODE_OFF; Loading Loading @@ -695,6 +698,11 @@ int LvmBundle_init(EffectContext *pContext){ params.TE_OperatingMode = LVM_TE_OFF; params.TE_EffectLevel = 0; #ifdef SUPPORT_MC params.NrChannels = audio_channel_count_from_out_mask(AUDIO_CHANNEL_OUT_STEREO); params.ChMask = AUDIO_CHANNEL_OUT_STEREO; #endif /* Activate the initial settings */ LvmStatus = LVM_SetControlParameters(pContext->pBundledContext->hInstance, ¶ms); Loading Loading @@ -1297,7 +1305,12 @@ int Effect_setConfig(EffectContext *pContext, effect_config_t *pConfig){ return -EINVAL; } #ifdef SUPPORT_MC if (pContext->pBundledContext->SampleRate != SampleRate || pContext->pBundledContext->ChMask != pConfig->inputCfg.channels) { #else if(pContext->pBundledContext->SampleRate != SampleRate){ #endif LVM_ControlParams_t ActiveParams; LVM_ReturnStatus_en LvmStatus = LVM_SUCCESS; Loading @@ -1323,6 +1336,9 @@ int Effect_setConfig(EffectContext *pContext, effect_config_t *pConfig){ LVM_ERROR_CHECK(LvmStatus, "LVM_SetControlParameters", "Effect_setConfig") ALOGV("\tEffect_setConfig Succesfully called LVM_SetControlParameters\n"); pContext->pBundledContext->SampleRate = SampleRate; #ifdef SUPPORT_MC pContext->pBundledContext->ChMask = pConfig->inputCfg.channels; #endif LvmEffect_limitLevel(pContext); Loading media/libeffects/lvm/wrapper/Bundle/EffectBundle.h +3 −0 Original line number Diff line number Diff line Loading @@ -107,6 +107,9 @@ struct BundledEffectContext{ LVM_FLOAT *pInputBuffer; LVM_FLOAT *pOutputBuffer; #endif #ifdef SUPPORT_MC LVM_INT32 ChMask; #endif }; /* SessionContext : One session */ Loading Loading
media/libeffects/lvm/wrapper/Bundle/EffectBundle.cpp +16 −0 Original line number Diff line number Diff line Loading @@ -650,6 +650,9 @@ int LvmBundle_init(EffectContext *pContext){ params.SpeakerType = LVM_HEADPHONES; pContext->pBundledContext->SampleRate = LVM_FS_44100; #ifdef SUPPORT_MC pContext->pBundledContext->ChMask = AUDIO_CHANNEL_OUT_STEREO; #endif /* Concert Sound parameters */ params.VirtualizerOperatingMode = LVM_MODE_OFF; Loading Loading @@ -695,6 +698,11 @@ int LvmBundle_init(EffectContext *pContext){ params.TE_OperatingMode = LVM_TE_OFF; params.TE_EffectLevel = 0; #ifdef SUPPORT_MC params.NrChannels = audio_channel_count_from_out_mask(AUDIO_CHANNEL_OUT_STEREO); params.ChMask = AUDIO_CHANNEL_OUT_STEREO; #endif /* Activate the initial settings */ LvmStatus = LVM_SetControlParameters(pContext->pBundledContext->hInstance, ¶ms); Loading Loading @@ -1297,7 +1305,12 @@ int Effect_setConfig(EffectContext *pContext, effect_config_t *pConfig){ return -EINVAL; } #ifdef SUPPORT_MC if (pContext->pBundledContext->SampleRate != SampleRate || pContext->pBundledContext->ChMask != pConfig->inputCfg.channels) { #else if(pContext->pBundledContext->SampleRate != SampleRate){ #endif LVM_ControlParams_t ActiveParams; LVM_ReturnStatus_en LvmStatus = LVM_SUCCESS; Loading @@ -1323,6 +1336,9 @@ int Effect_setConfig(EffectContext *pContext, effect_config_t *pConfig){ LVM_ERROR_CHECK(LvmStatus, "LVM_SetControlParameters", "Effect_setConfig") ALOGV("\tEffect_setConfig Succesfully called LVM_SetControlParameters\n"); pContext->pBundledContext->SampleRate = SampleRate; #ifdef SUPPORT_MC pContext->pBundledContext->ChMask = pConfig->inputCfg.channels; #endif LvmEffect_limitLevel(pContext); Loading
media/libeffects/lvm/wrapper/Bundle/EffectBundle.h +3 −0 Original line number Diff line number Diff line Loading @@ -107,6 +107,9 @@ struct BundledEffectContext{ LVM_FLOAT *pInputBuffer; LVM_FLOAT *pOutputBuffer; #endif #ifdef SUPPORT_MC LVM_INT32 ChMask; #endif }; /* SessionContext : One session */ Loading