harmony 鸿蒙native_audiorenderer.h
native_audiorenderer.h
Overview
The native_audiorenderer.h file declares the functions related to an audio renderer.
\@syscap SystemCapability.Multimedia.Audio.Core
Since
10
Related Modules
Summary
Functions
Name | Description |
---|---|
OH_AudioRenderer_Release (OH_AudioRenderer *renderer) | Releases an audio renderer. |
OH_AudioRenderer_Start (OH_AudioRenderer *renderer) | Starts an audio renderer. |
OH_AudioRenderer_Pause (OH_AudioRenderer *renderer) | Pauses an audio renderer. |
OH_AudioRenderer_Stop (OH_AudioRenderer *renderer) | Stops an audio renderer. |
OH_AudioRenderer_Flush (OH_AudioRenderer *renderer) | Flushes written audio data. |
OH_AudioRenderer_GetCurrentState (OH_AudioRenderer *renderer, OH_AudioStream_State *state) | Obtains the state of an audio stream. |
OH_AudioRenderer_GetSamplingRate (OH_AudioRenderer *renderer, int32_t *rate) | Obtains the sampling rate of an audio stream. |
OH_AudioRenderer_GetStreamId (OH_AudioRenderer *renderer, uint32_t *streamId) | Obtains the stream ID of an audio stream. |
OH_AudioRenderer_GetChannelCount (OH_AudioRenderer *renderer, int32_t *channelCount) | Obtains the number of channels for an audio stream. |
OH_AudioRenderer_GetSampleFormat (OH_AudioRenderer *renderer, OH_AudioStream_SampleFormat *sampleFormat) | Obtains the sampling format of an audio stream. |
OH_AudioRenderer_GetLatencyMode (OH_AudioRenderer *renderer, OH_AudioStream_LatencyMode *latencyMode) | Obtains the latency mode of an audio stream. |
OH_AudioRenderer_GetRendererInfo (OH_AudioRenderer *renderer, OH_AudioStream_Usage *usage) | Obtains the usage scenario of an audio renderer. |
OH_AudioRenderer_GetEncodingType (OH_AudioRenderer *renderer, OH_AudioStream_EncodingType *encodingType) | Obtains the encoding type of an audio stream. |
你可能感兴趣的鸿蒙文章
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦