Home
last modified time | relevance | path

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

/ohos5.0/foundation/multimedia/audio_framework/services/audio_policy/server/src/service/config/
H A Daudio_policy_parser.cpp419 StreamPropInfo streamPropInfo = {}; in ParseStreamProps() local
420 streamPropInfo.format_ = ExtractPropertyValue("format", *currNode); in ParseStreamProps()
423 streamPropInfo.sampleRate_ = (uint32_t)std::stoi(sampleRateStr); in ParseStreamProps()
424 pipeInfo.sampleRates_.push_back(streamPropInfo.sampleRate_); in ParseStreamProps()
428 streamPropInfo.periodInMs_ = (uint32_t)std::stoi(periodInMsStr); in ParseStreamProps()
432 streamPropInfo.channelLayout_ = layoutStrToChannels[channelLayoutStr]; in ParseStreamProps()
433 pipeInfo.channelLayouts_.push_back(streamPropInfo.channelLayout_); in ParseStreamProps()
438 streamPropInfo.bufferSize_ = (uint32_t)std::stoi(bufferSizeStr); in ParseStreamProps()
440streamPropInfo.bufferSize_ = formatStrToEnum[streamPropInfo.format_] * streamPropInfo.sampleRate_ * in ParseStreamProps()
441 streamPropInfo.periodInMs_ * streamPropInfo.channelLayout_ / AUDIO_MS_PER_S; in ParseStreamProps()
[all …]
/ohos5.0/foundation/multimedia/audio_framework/services/audio_policy/server/src/service/
H A Daudio_policy_service.cpp7315 for (const auto &streamPropInfo : streamPropInfoList) { in FetchTargetInfoForSessionAdd() local
7316 if (sessionInfo.channels == streamPropInfo.channelLayout_ in FetchTargetInfoForSessionAdd()
7317 && sessionInfo.rate == streamPropInfo.sampleRate_) { in FetchTargetInfoForSessionAdd()
7318 targetStreamPropInfo = streamPropInfo; in FetchTargetInfoForSessionAdd()