Searched refs:posInFrame (Results 1 - 7 of 7) sorted by relevance
/foundation/multimedia/audio_framework/services/audio_service/common/src/ |
H A D | linear_pos_time_model.cpp | 112 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() 119 AUDIO_WARNING_LOG("posInFrame %{public}" PRIu64" is too" 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() 126 AUDIO_WARNING_LOG("posInFrame %{public}" PRIu64" is too" in GetTimeOfPos() 127 " small, stampFrame: %{public}" PRIu64"", posInFrame, stampFrame_); in GetTimeOfPos() 129 deltaFrame = static_cast<int64_t>(stampFrame_ - posInFrame); in GetTimeOfPos() [all...] |
H A D | oh_audio_buffer.cpp | 623 int32_t OHAudioBuffer::GetBufferByFrame(uint64_t posInFrame, BufferDesc &bufferDesc) 627 CHECK_AND_RETURN_RET_LOG(posInFrame >= basePos && posInFrame - basePos < maxDelta, 628 ERR_INVALID_PARAM, "Invalid position:%{public}" PRIu64".", posInFrame); 630 uint32_t deltaToBase = posInFrame - basePos; 635 "invalid deltaToBase, posInFrame %{public}" PRIu64" basePos %{public}" PRIu64".", posInFrame, basePos); 676 SpanInfo *OHAudioBuffer::GetSpanInfo(uint64_t posInFrame) 680 CHECK_AND_RETURN_RET_LOG((basePos <= posInFrame && posInFrame < maxPo [all...] |
/foundation/multimedia/audio_framework/services/audio_service/test/unittest/ |
H A D | audio_service_common_unit_test.cpp | 85 uint64_t posInFrame = 20; in HWTEST() local 87 int64_t retPos = linearPosTimeModel->GetTimeOfPos(posInFrame); in HWTEST() 118 uint64_t posInFrame = 20; in HWTEST() local 119 int64_t retPos = linearPosTimeModel->GetTimeOfPos(posInFrame); in HWTEST() 121 deltaFrame = posInFrame - frame; in HWTEST() 129 retPos = linearPosTimeModel->GetTimeOfPos(posInFrame); in HWTEST() 130 deltaFrame = frame - posInFrame; in HWTEST() 279 uint64_t posInFrame = 1000; in HWTEST() local 281 ret = oHAudioBuffer->GetBufferByFrame(posInFrame, bufferDesc); in HWTEST() 284 posInFrame in HWTEST() 313 uint64_t posInFrame = 4000; HWTEST() local [all...] |
/foundation/multimedia/audio_framework/services/audio_service/common/include/ |
H A D | linear_pos_time_model.h | 37 int64_t GetTimeOfPos(uint64_t posInFrame);
|
H A D | oh_audio_buffer.h | 169 int32_t GetBufferByFrame(uint64_t posInFrame, BufferDesc &bufferDesc); 171 SpanInfo *GetSpanInfo(uint64_t posInFrame);
|
/foundation/multimedia/audio_framework/services/audio_service/server/src/ |
H A D | audio_endpoint.cpp | 195 int64_t GetPredictNextReadTime(uint64_t posInFrame); 196 int64_t GetPredictNextWriteTime(uint64_t posInFrame); 1700 int64_t AudioEndpointInner::GetPredictNextReadTime(uint64_t posInFrame) in GetPredictNextReadTime() argument 1703 uint64_t handleSpanCnt = posInFrame / dstSpanSizeInframe_; in GetPredictNextReadTime() 1717 int64_t nextHdiReadTime = readTimeModel_.GetTimeOfPos(posInFrame); in GetPredictNextReadTime() 1721 int64_t AudioEndpointInner::GetPredictNextWriteTime(uint64_t posInFrame) in GetPredictNextWriteTime() argument 1723 uint64_t handleSpanCnt = posInFrame / dstSpanSizeInframe_; in GetPredictNextWriteTime() 1736 int64_t nextHdiWriteTime = writeTimeModel_.GetTimeOfPos(posInFrame); in GetPredictNextWriteTime()
|
/foundation/multimedia/audio_framework/services/audio_service/client/src/ |
H A D | audio_process_in_client.cpp | 140 int64_t GetPredictNextHandleTime(uint64_t posInFrame, bool isIndependent = false); 1185 int64_t AudioProcessInClientInner::GetPredictNextHandleTime(uint64_t posInFrame, bool isIndependent) in GetPredictNextHandleTime() argument 1191 handleSpanCnt = posInFrame / spanSizeInFrame_; in GetPredictNextHandleTime() 1205 int64_t nextHandleTime = handleTimeModel_.GetTimeOfPos(posInFrame); in GetPredictNextHandleTime()
|
Completed in 10 milliseconds