Loading services/audioflinger/Effects.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -3534,12 +3534,12 @@ NO_THREAD_SAFETY_ANALYSIS mHalEffect = sp<HwAccDeviceEffectModule>::make(mMyCallback, const_cast<effect_descriptor_t *>(&mDescriptor), mMyCallback->newEffectId(), port->id); mHalEffect->configure_l(); if (audio_is_input_device(mDevice.mType)) { mHalEffect->setInputDevice(mDevice); } else { mHalEffect->setDevices({mDevice}); } mHalEffect->configure_l(); } *handle = new EffectHandle(mHalEffect, nullptr, nullptr, 0 /*priority*/, mNotifyFramesProcessed); Loading services/audioflinger/Effects.h +4 −1 Original line number Diff line number Diff line Loading @@ -811,7 +811,10 @@ private: audio_channel_mask_t outChannelMask() const override; uint32_t outChannelCount() const override; audio_channel_mask_t hapticChannelMask() const override { return AUDIO_CHANNEL_NONE; } size_t frameCount() const override { return 0; } /** * frameCount cannot be zero. */ size_t frameCount() const override { return 1; } uint32_t latency() const override { return 0; } status_t addEffectToHal(const sp<EffectHalInterface>& effect) override; Loading Loading
services/audioflinger/Effects.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -3534,12 +3534,12 @@ NO_THREAD_SAFETY_ANALYSIS mHalEffect = sp<HwAccDeviceEffectModule>::make(mMyCallback, const_cast<effect_descriptor_t *>(&mDescriptor), mMyCallback->newEffectId(), port->id); mHalEffect->configure_l(); if (audio_is_input_device(mDevice.mType)) { mHalEffect->setInputDevice(mDevice); } else { mHalEffect->setDevices({mDevice}); } mHalEffect->configure_l(); } *handle = new EffectHandle(mHalEffect, nullptr, nullptr, 0 /*priority*/, mNotifyFramesProcessed); Loading
services/audioflinger/Effects.h +4 −1 Original line number Diff line number Diff line Loading @@ -811,7 +811,10 @@ private: audio_channel_mask_t outChannelMask() const override; uint32_t outChannelCount() const override; audio_channel_mask_t hapticChannelMask() const override { return AUDIO_CHANNEL_NONE; } size_t frameCount() const override { return 0; } /** * frameCount cannot be zero. */ size_t frameCount() const override { return 1; } uint32_t latency() const override { return 0; } status_t addEffectToHal(const sp<EffectHalInterface>& effect) override; Loading