Home
last modified time | relevance | path

Searched refs:STEREO_CHANNEL_COUNT (Results 1 - 8 of 8) sorted by relevance

/foundation/multimedia/audio_framework/services/audio_service/server/src/
H A Dnone_mix_engine.cpp31 constexpr int16_t STEREO_CHANNEL_COUNT = 2; member
396 uint32_t targetChannel = streamInfo.channels >= STEREO_CHANNEL_COUNT ? STEREO_CHANNEL_COUNT : 1; in InitSink()
426 attr.channelLayout = channel >= STEREO_CHANNEL_COUNT ? HDI_STEREO_CHANNEL_LAYOUT : HDI_MONO_CHANNEL_LAYOUT; in InitSink()
H A Dpro_renderer_stream_impl.cpp36 constexpr int32_t STEREO_CHANNEL_COUNT = 2; member
132 uint32_t desChannels = streamInfo.channels >= STEREO_CHANNEL_COUNT ? STEREO_CHANNEL_COUNT : 1; in InitParams()
148 if (streamInfo.channels > STEREO_CHANNEL_COUNT) { in InitParams()
/foundation/multimedia/audio_framework/frameworks/native/hdiadapter/sink/offload/
H A Doffload_audio_renderer_sink.cpp56 const uint32_t STEREO_CHANNEL_COUNT = 2; member
292 CHECK_AND_RETURN_LOG(attr_.channel == STEREO_CHANNEL_COUNT, "Unspport channel number: %{public}d", attr_.channel); in AdjustStereoToMono()
324 CHECK_AND_RETURN_LOG(attr_.channel == STEREO_CHANNEL_COUNT, "Unspport channel number: %{public}d", attr_.channel); in AdjustAudioBalance()
804 uint64_t hdiLatency = renderPos_ * SECOND_TO_MICROSECOND / (AUDIO_SAMPLE_RATE_48K * 4 * STEREO_CHANNEL_COUNT); in GetLatency()
965 uint32_t size = (uint64_t) sizeMs * AUDIO_SAMPLE_RATE_48K * 4 * STEREO_CHANNEL_COUNT / SECOND_TO_MILLISECOND; in SetBufferSize()
/foundation/multimedia/audio_framework/frameworks/native/audioutils/src/
H A Daudio_utils.cpp72 const int32_t STEREO_CHANNEL_COUNT = 2; member
404 uint64_t count = len / STEREO_CHANNEL_COUNT / 3; // 3: the bit depth of PCM24Bit is 24 bits (3 bytes) in AdjustStereoToMonoForPCM24Bit()
414 leftData = static_cast<uint32_t>(static_cast<int32_t>(leftData << BIT_8) / STEREO_CHANNEL_COUNT + in AdjustStereoToMonoForPCM24Bit()
415 static_cast<int32_t>(rightData << BIT_8) / STEREO_CHANNEL_COUNT) >> BIT_8; in AdjustStereoToMonoForPCM24Bit()
475 uint64_t count = len / STEREO_CHANNEL_COUNT / 3; // 3: the bit depth of PCM24Bit is 24 bits (3 bytes) in AdjustAudioBalanceForPCM24Bit()
/foundation/multimedia/audio_framework/frameworks/native/hdiadapter/sink/multichannel/
H A Dmultichannel_audio_renderer_sink.cpp58 const uint32_t STEREO_CHANNEL_COUNT = 2; member
290 if (attr_.channel != STEREO_CHANNEL_COUNT) { in AdjustStereoToMono()
325 if (attr_.channel != STEREO_CHANNEL_COUNT) { in AdjustAudioBalance()
1074 attr_.channel = STEREO_CHANNEL_COUNT; in UpdateUsbAttrs()
/foundation/multimedia/audio_framework/frameworks/native/hdiadapter/sink/bluetooth/
H A Dbluetooth_renderer_sink.cpp70 const uint32_t STEREO_CHANNEL_COUNT = 2; member
957 CHECK_AND_RETURN_LOG(attr_.channel == STEREO_CHANNEL_COUNT, in AdjustStereoToMono()
990 CHECK_AND_RETURN_LOG(attr_.channel == STEREO_CHANNEL_COUNT, in AdjustAudioBalance()
/foundation/multimedia/audio_framework/frameworks/native/hdiadapter/sink/primary/
H A Daudio_renderer_sink.cpp65 const uint32_t STEREO_CHANNEL_COUNT = 2; member
498 CHECK_AND_RETURN_LOG(attr_.channel == STEREO_CHANNEL_COUNT, in AdjustStereoToMono()
529 CHECK_AND_RETURN_LOG(attr_.channel == STEREO_CHANNEL_COUNT, in AdjustAudioBalance()
1346 attr_.channel = STEREO_CHANNEL_COUNT; in UpdateUsbAttrs()
/foundation/multimedia/audio_framework/frameworks/native/hdiadapter/source/primary/
H A Daudio_capturer_source.cpp185 static constexpr uint32_t STEREO_CHANNEL_COUNT = 2; member in OHOS::AudioStandard::AudioCapturerSourceInner
1503 attr_.channel = STEREO_CHANNEL_COUNT; in UpdateUsbAttrs()

Completed in 15 milliseconds