Home
last modified time | relevance | path

Searched refs:posInFrame (Results 1 – 7 of 7) sorted by relevance

/ohos5.0/foundation/multimedia/audio_framework/services/audio_service/common/src/
H A Dlinear_pos_time_model.cpp112 int64_t LinearPosTimeModel::GetTimeOfPos(uint64_t posInFrame) in GetTimeOfPos() argument
117 if (posInFrame >= stampFrame_) { in GetTimeOfPos()
118 if (posInFrame - stampFrame_ >= (uint64_t)sampleRate_) { in GetTimeOfPos()
120 " large, stampFrame: %{public}" PRIu64"", posInFrame, stampFrame_); in GetTimeOfPos()
122 deltaFrame = static_cast<int64_t>(posInFrame - stampFrame_); in GetTimeOfPos()
125 if (stampFrame_ - posInFrame >= (uint64_t)sampleRate_) { in GetTimeOfPos()
127 " small, stampFrame: %{public}" PRIu64"", posInFrame, stampFrame_); in GetTimeOfPos()
129 deltaFrame = static_cast<int64_t>(stampFrame_ - posInFrame); in GetTimeOfPos()
H A Doh_audio_buffer.cpp604 int32_t OHAudioBuffer::GetBufferByFrame(uint64_t posInFrame, BufferDesc &bufferDesc) in GetBufferByFrame() argument
608 CHECK_AND_RETURN_RET_LOG(posInFrame >= basePos && posInFrame - basePos < maxDelta, in GetBufferByFrame()
609 ERR_INVALID_PARAM, "Invalid position:%{public}" PRIu64".", posInFrame); in GetBufferByFrame()
611 uint32_t deltaToBase = posInFrame - basePos; in GetBufferByFrame()
616 …alid deltaToBase, posInFrame %{public}" PRIu64" basePos %{public}" PRIu64".", posInFrame, basePos); in GetBufferByFrame()
657 SpanInfo *OHAudioBuffer::GetSpanInfo(uint64_t posInFrame) in GetSpanInfo() argument
661 …CHECK_AND_RETURN_RET_LOG((basePos <= posInFrame && posInFrame < maxPos), nullptr, "posInFrame %{pu… in GetSpanInfo()
662 …"out of range, basePos %{public}" PRIu64", maxPos %{public}" PRIu64".", posInFrame, basePos, maxPo… in GetSpanInfo()
664 uint64_t deltaToBase = posInFrame - basePos; in GetSpanInfo()
669 … "deltaToBase, posInFrame %{public}" PRIu64" basePos %{public}" PRIu64".", posInFrame, basePos); in GetSpanInfo()
/ohos5.0/foundation/multimedia/audio_framework/services/audio_service/test/unittest/
H A Daudio_service_common_unit_test.cpp85 uint64_t posInFrame = 20; variable
87 int64_t retPos = linearPosTimeModel->GetTimeOfPos(posInFrame);
118 uint64_t posInFrame = 20; variable
119 int64_t retPos = linearPosTimeModel->GetTimeOfPos(posInFrame);
121 deltaFrame = posInFrame - frame;
129 retPos = linearPosTimeModel->GetTimeOfPos(posInFrame);
130 deltaFrame = frame - posInFrame;
279 uint64_t posInFrame = 1000; variable
284 posInFrame = 3000 + 1;
313 uint64_t posInFrame = 4000; variable
[all …]
/ohos5.0/foundation/multimedia/audio_framework/services/audio_service/common/include/
H A Doh_audio_buffer.h165 int32_t GetBufferByFrame(uint64_t posInFrame, BufferDesc &bufferDesc);
167 SpanInfo *GetSpanInfo(uint64_t posInFrame);
H A Dlinear_pos_time_model.h37 int64_t GetTimeOfPos(uint64_t posInFrame);
/ohos5.0/foundation/multimedia/audio_framework/services/audio_service/server/src/
H A Daudio_endpoint.cpp192 int64_t GetPredictNextReadTime(uint64_t posInFrame);
193 int64_t GetPredictNextWriteTime(uint64_t posInFrame);
1656 int64_t AudioEndpointInner::GetPredictNextReadTime(uint64_t posInFrame) in GetPredictNextReadTime() argument
1659 uint64_t handleSpanCnt = posInFrame / dstSpanSizeInframe_; in GetPredictNextReadTime()
1673 int64_t nextHdiReadTime = readTimeModel_.GetTimeOfPos(posInFrame); in GetPredictNextReadTime()
1677 int64_t AudioEndpointInner::GetPredictNextWriteTime(uint64_t posInFrame) in GetPredictNextWriteTime() argument
1679 uint64_t handleSpanCnt = posInFrame / dstSpanSizeInframe_; in GetPredictNextWriteTime()
1692 int64_t nextHdiWriteTime = writeTimeModel_.GetTimeOfPos(posInFrame); in GetPredictNextWriteTime()
/ohos5.0/foundation/multimedia/audio_framework/services/audio_service/client/src/
H A Daudio_process_in_client.cpp142 int64_t GetPredictNextHandleTime(uint64_t posInFrame, bool isIndependent = false);
1187 int64_t AudioProcessInClientInner::GetPredictNextHandleTime(uint64_t posInFrame, bool isIndependent) in GetPredictNextHandleTime() argument
1193 handleSpanCnt = posInFrame / spanSizeInFrame_; in GetPredictNextHandleTime()
1207 int64_t nextHandleTime = handleTimeModel_.GetTimeOfPos(posInFrame); in GetPredictNextHandleTime()