Loading media/libeffects/lvm/wrapper/Aidl/BundleContext.cpp +14 −0 Original line number Diff line number Diff line Loading @@ -32,6 +32,20 @@ using ::aidl::android::media::audio::common::AudioChannelLayout; using ::aidl::android::media::audio::common::AudioDeviceDescription; using ::aidl::android::media::audio::common::AudioDeviceType; BundleContext::BundleContext(int statusDepth, const Parameter::Common& common, const lvm::BundleEffectType& type) : EffectContext(statusDepth, common), mType(type) { LOG(DEBUG) << __func__ << type; int channelCount = ::aidl::android::hardware::audio::common::getChannelCount( common.input.base.channelMask); mSamplesPerSecond = common.input.base.sampleRate * channelCount; } BundleContext::~BundleContext() { LOG(DEBUG) << __func__; deInit(); } RetCode BundleContext::init() { std::lock_guard lg(mMutex); // init with pre-defined preset NORMAL Loading media/libeffects/lvm/wrapper/Aidl/BundleContext.h +2 −8 Original line number Diff line number Diff line Loading @@ -29,14 +29,8 @@ namespace aidl::android::hardware::audio::effect { class BundleContext final : public EffectContext { public: BundleContext(int statusDepth, const Parameter::Common& common, const lvm::BundleEffectType& type) : EffectContext(statusDepth, common), mType(type) { LOG(DEBUG) << __func__ << type; } ~BundleContext() override { LOG(DEBUG) << __func__; deInit(); } const lvm::BundleEffectType& type); ~BundleContext(); RetCode init(); void deInit(); Loading Loading
media/libeffects/lvm/wrapper/Aidl/BundleContext.cpp +14 −0 Original line number Diff line number Diff line Loading @@ -32,6 +32,20 @@ using ::aidl::android::media::audio::common::AudioChannelLayout; using ::aidl::android::media::audio::common::AudioDeviceDescription; using ::aidl::android::media::audio::common::AudioDeviceType; BundleContext::BundleContext(int statusDepth, const Parameter::Common& common, const lvm::BundleEffectType& type) : EffectContext(statusDepth, common), mType(type) { LOG(DEBUG) << __func__ << type; int channelCount = ::aidl::android::hardware::audio::common::getChannelCount( common.input.base.channelMask); mSamplesPerSecond = common.input.base.sampleRate * channelCount; } BundleContext::~BundleContext() { LOG(DEBUG) << __func__; deInit(); } RetCode BundleContext::init() { std::lock_guard lg(mMutex); // init with pre-defined preset NORMAL Loading
media/libeffects/lvm/wrapper/Aidl/BundleContext.h +2 −8 Original line number Diff line number Diff line Loading @@ -29,14 +29,8 @@ namespace aidl::android::hardware::audio::effect { class BundleContext final : public EffectContext { public: BundleContext(int statusDepth, const Parameter::Common& common, const lvm::BundleEffectType& type) : EffectContext(statusDepth, common), mType(type) { LOG(DEBUG) << __func__ << type; } ~BundleContext() override { LOG(DEBUG) << __func__; deInit(); } const lvm::BundleEffectType& type); ~BundleContext(); RetCode init(); void deInit(); Loading