Home
last modified time | relevance | path

Searched refs:durationFrame (Results 1 – 6 of 6) sorted by relevance

/ohos5.0/drivers/peripheral/distributed_audio/hdi_service/audio/v1_0/test/unittest/audio_render_extension/src/
H A Daudio_render_ext_impl_test.cpp172 const uint32_t durationFrame = 10; variable
183 audioRenderlatencyImpl_->SetVolumeInner(durationFrame);
184 audioRenderlatencyImpl_->SetVolumeRangeInner(durationFrame, durationFrame);
185 …EXPECT_EQ(HDF_SUCCESS, audioRenderlatencyImpl_->FadeInProcess(durationFrame, frameData, frameLengt…
/ohos5.0/drivers/peripheral/distributed_audio/hdi_service/audio/v1_0/src/
H A Daudio_render_interface_impl.cpp74 int32_t AudioRenderInterfaceImpl::FadeInProcess(const uint32_t durationFrame, in FadeInProcess() argument
85 … float rate = GetFadeRate(currentFrame_ * newFrameLength + k, durationFrame * newFrameLength); in FadeInProcess()
86 … frame[k] = currentFrame_ == durationFrame - 1 ? frame[k] : static_cast<int16_t>(rate * frame[k]); in FadeInProcess()
88 if (currentFrame_ < durationFrame - 1) { in FadeInProcess()
92 currentFrame_ = currentFrame_ >= durationFrame ? durationFrame - 1 : currentFrame_; in FadeInProcess()
H A Daudio_render_ext_impl.cpp101 int32_t AudioRenderExtImpl::FadeInProcess(const uint32_t durationFrame, in FadeInProcess() argument
106 if (durationFrame < 1) { in FadeInProcess()
110 … float rate = GetFadeRate(currentFrame_ * newFrameLength + k, durationFrame * newFrameLength); in FadeInProcess()
111 … frame[k] = currentFrame_ == durationFrame - 1 ? frame[k] : static_cast<int16_t>(rate * frame[k]); in FadeInProcess()
115 currentFrame_ = currentFrame_ >= durationFrame ? durationFrame - 1 : currentFrame_; in FadeInProcess()
/ohos5.0/drivers/peripheral/distributed_audio/hdi_service/audio/v1_0/test/unittest/audio_render_interface/src/
H A Daudio_render_interface_impl_test.cpp767 const uint32_t durationFrame = 10; variable
772 …EXPECT_EQ(HDF_SUCCESS, audioRenderInterfaceImpl_->FadeInProcess(durationFrame, frameData, frameLen…
773 …EXPECT_EQ(HDF_ERR_INVALID_PARAM, audioRenderInterfaceImpl_->FadeInProcess(durationFrame, frameData…
/ohos5.0/drivers/peripheral/distributed_audio/hdi_service/audio/v1_0/include/
H A Daudio_render_ext_impl.h97 … int32_t FadeInProcess(const uint32_t durationFrame, int8_t* frameData, const size_t frameLength);
H A Daudio_render_interface_impl.h101 … int32_t FadeInProcess(const uint32_t durationFrame, int8_t* frameData, const size_t frameLength);