openharmony 鸿蒙 capi-ohaudiosuite-oh-audioformat

2026-08-25 浏览 (1)

OH_AudioFormat

typedef struct {...} OH_AudioFormat

Overview

The struct describes the audio stream information, which is used to describe the basic audio format, required for audio creation.

Since: 22

Related module: OHAudioSuite

Header file: native_audio_suite_base.h

Summary

Member Variables

NameDescription
OH_Audio_SampleRate samplingRateSample rate of the audio stream.
OH_AudioChannelLayout channelLayoutChannel layout of the audio stream. Currently, only CH_LAYOUT_MONO and CH_LAYOUT_STEREO are supported.
uint32_t channelCountNumber of audio channels in the audio stream. Currently, only single-channel (1) and dual-channel (2) configurations are supported.
OH_Audio_EncodingType encodingTypeEncoding type used for the audio stream.
OH_Audio_SampleFormat sampleFormatSample format of the audio stream.

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 capi-native-audiostreambuilder-h

openharmony 鸿蒙 capi-ohaudiosuite

openharmony 鸿蒙 js-apis-inner-multimedia-systemSoundPlayer

openharmony 鸿蒙 arkts-apis-audio-i

openharmony 鸿蒙 capi-ohaudio

openharmony 鸿蒙 capi-ohmidi

openharmony 鸿蒙 arkts-apis-audio-AudioManager

openharmony 鸿蒙 capi-ohaudiosuite-oh-audiosuite-spacerenderpositionparams

openharmony 鸿蒙 capi-ohaudio-oh-audiostreaminfo

openharmony 鸿蒙 errorcode-ringtone

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/yVwJy5ZT