harmony 鸿蒙native_audiorenderer.h

  • 2023-10-30
  • 浏览 (390)

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

OHAudio

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.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Native APIs

harmony 鸿蒙AVCapability

harmony 鸿蒙AVDemuxer

harmony 鸿蒙AVMuxer

harmony 鸿蒙AVScreenCapture

harmony 鸿蒙AVSource

harmony 鸿蒙AudioDecoder

harmony 鸿蒙AudioEncoder

harmony 鸿蒙CodecBase

harmony 鸿蒙Core

0  赞