Home
last modified time | relevance | path

Searched refs:pcmCache_ (Results 1 – 2 of 2) sorted by relevance

/ohos5.0/foundation/ai/ai_engine/services/client/algorithm_sdk/asr/keyword_spotting/source/
H A Dpcm_iterator.cpp71 AIE_NEW(pcmCache_.data, int16_t[maxCacheSize_]); in Init()
72 if (pcmCache_.data == nullptr) { in Init()
83 AIE_DELETE_ARRAY(pcmCache_.data); in Release()
119 pcmCache_.size += numRealCopy_; in Prepare()
152 pcmCache_ = {0}; in Reset()
160 if (nextCachePos_ > 0 && numCopy_ == 0 && pcmCache_.size > 0 && pcmCache_.size < windowSize_) { in HasNext()
162 .data = pcmCache_.data + nextCachePos_, in HasNext()
163 .size = pcmCache_.size in HasNext()
182 if (windowSize_ <= pcmCache_.size) { in Next()
186 pcmCache_.size -= stepSize_; in Next()
[all …]
/ohos5.0/foundation/ai/ai_engine/services/client/algorithm_sdk/asr/keyword_spotting/include/
H A Dpcm_iterator.h45 Array<int16_t> pcmCache_ = {0}; variable