harmony 鸿蒙native_audiocapturer.h

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

native_audiocapturer.h

Overview

The native_audiocapturer.h file declares the functions related to an audio capturer.

\@syscap SystemCapability.Multimedia.Audio.Core

Since

10

Related Modules

OHAudio

Summary

Functions

Name Description
OH_AudioCapturer_Release (OH_AudioCapturer *capturer) Releases an audio capturer.
OH_AudioCapturer_Start (OH_AudioCapturer *capturer) Starts an audio capturer.
OH_AudioCapturer_Pause (OH_AudioCapturer *capturer) Pauses an audio capturer.
OH_AudioCapturer_Stop (OH_AudioCapturer *capturer) Stops an audio capturer.
OH_AudioCapturer_Flush (OH_AudioCapturer *capturer) Flushes obtained audio data.
OH_AudioCapturer_GetCurrentState (OH_AudioCapturer *capturer, OH_AudioStream_State *state) Obtains the state of an audio stream.
OH_AudioCapturer_GetLatencyMode (OH_AudioCapturer *capturer, OH_AudioStream_LatencyMode *latencyMode) Obtains the latency mode of an audio stream.
OH_AudioCapturer_GetStreamId (OH_AudioCapturer *capturer, uint32_t *streamId) Obtains the stream ID of an audio stream.
OH_AudioCapturer_GetSamplingRate (OH_AudioCapturer *capturer, int32_t *rate) Obtains the sampling rate of an audio stream.
OH_AudioCapturer_GetChannelCount (OH_AudioCapturer *capturer, int32_t *channelCount) Obtains the number of channels for an audio stream.
OH_AudioCapturer_GetSampleFormat (OH_AudioCapturer *capturer, OH_AudioStream_SampleFormat *sampleFormat) Obtains the sampling format of an audio stream.
OH_AudioCapturer_GetEncodingType (OH_AudioCapturer *capturer, OH_AudioStream_EncodingType *encodingType) Obtains the encoding type of an audio stream.
OH_AudioCapturer_GetCapturerInfo (OH_AudioCapturer *capturer, OH_AudioStream_SourceType *sourceType) Obtains the usage scenario of an audio capturer.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Native APIs

harmony 鸿蒙AVCapability

harmony 鸿蒙AVDemuxer

harmony 鸿蒙AVMuxer

harmony 鸿蒙AVScreenCapture

harmony 鸿蒙AVSource

harmony 鸿蒙AudioDecoder

harmony 鸿蒙AudioEncoder

harmony 鸿蒙CodecBase

harmony 鸿蒙Core

0  赞