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
| Name | Description |
|---|---|
| OH_Audio_SampleRate samplingRate | Sample rate of the audio stream. |
| OH_AudioChannelLayout channelLayout | Channel layout of the audio stream. Currently, only CH_LAYOUT_MONO and CH_LAYOUT_STEREO are supported. |
| uint32_t channelCount | Number of audio channels in the audio stream. Currently, only single-channel (1) and dual-channel (2) configurations are supported. |
| OH_Audio_EncodingType encodingType | Encoding type used for the audio stream. |
| OH_Audio_SampleFormat sampleFormat | Sample 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 鸿蒙 arkts-apis-audio-AudioManager
openharmony 鸿蒙 capi-ohaudiosuite-oh-audiosuite-spacerenderpositionparams