harmony 鸿蒙native_audiocapturer.h
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
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. |
你可能感兴趣的鸿蒙文章
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦