OHOS::Audio::AudioCapturer
Overview
Related Modules:
Description:
Provides functions for applications to implement audio capturing.
Since:
1.0
Version:
1.0
Summary
Public Member Functions
Obtains the number of frames required in the current condition, in bytes per sample. |
|
SetCapturerInfo (const AudioCapturerInfo info) |
|
GetCapturerInfo (AudioCapturerInfo &info) |
|
Start () |
|
Read (uint8_t *buffer, size_t userSize, bool isBlockingRead) |
|
GetStatus () |
|
GetAudioTime (Timestamp ×tamp, Timestamp::Timebase base) |
|
Stop () |
|
Release () |
Releases a local AudioCapturer object. |
Static Public Member Functions
GetMinFrameCount (int32_t sampleRate, int32_t channelCount, AudioCodecFormat audioFormat, size_t &frameCount) |
Obtains the minimum number of frames required in a specified condition, in bytes per sample. |