提交 da1eb56e 编写于 作者: G Gloria 提交者: wusongqing

fixed f14f9f76 from https://gitee.com/wusongqing/docs/pulls/16465

Update docs against 16269

Signed-off-by: wusongqing<wusongqing@huawei.com>
上级 95d3767c
......@@ -53,10 +53,10 @@ To use OpenSL ES to develop the audio recording function in OpenHarmony, perform
// Configure the parameters based on the audio file format.
SLDataFormat_PCM format_pcm = {
SL_DATAFORMAT_PCM,
OHOS::AudioStandard::AudioChannel::MONO,
OHOS::AudioStandard::AudioSamplingRate::SAMPLE_RATE_44100,
OHOS::AudioStandard::AudioSampleFormat::SAMPLE_S16LE,
SL_DATAFORMAT_PCM, // Input audio format.
1, // Mono channel.
SL_SAMPLINGRATE_44_1, // Sampling rate, 44100 Hz.
SL_PCMSAMPLEFORMAT_FIXED_16, // Audio sampling format, a signed 16-bit integer in little-endian format.
0,
0,
0
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册