From 94cf02aa7399a0e3f923463dfc212b53211f2b77 Mon Sep 17 00:00:00 2001 From: gloria <80926032@qq.com> Date: Sat, 25 Jun 2022 06:51:20 +0000 Subject: [PATCH] =?UTF-8?q?=E3=80=90OpenHarmony=E5=BC=80=E6=BA=90=E8=B4=A1?= =?UTF-8?q?=E7=8C=AE=E8=80=85=E8=AE=A1=E5=88=922022=E3=80=91=E3=80=90?= =?UTF-8?q?=E8=8B=B1=E6=96=87=E3=80=91opensles-playback=20=E6=8B=BC?= =?UTF-8?q?=E5=86=99=E9=94=99=E8=AF=AF=20Signed-off-by:=20gloria=20<809260?= =?UTF-8?q?32@qq.com>?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- en/application-dev/media/opensles-playback.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/en/application-dev/media/opensles-playback.md b/en/application-dev/media/opensles-playback.md index b8568a6946..f70dc251b8 100644 --- a/en/application-dev/media/opensles-playback.md +++ b/en/application-dev/media/opensles-playback.md @@ -82,7 +82,7 @@ To use OpenSL ES to develop the audio playback function in OpenHarmony, perform ```c++ FILE *wavFile_ = nullptr; - static void BuqqerQueueCallback (SLOHBufferQueueItf bufferQueueItf, void *pContext, SLuint32 size) + static void BufferQueueCallback (SLOHBufferQueueItf bufferQueueItf, void *pContext, SLuint32 size) { FILE *wavFile = (FILE *)pContext; if (!feof(wavFile)) { @@ -98,7 +98,7 @@ To use OpenSL ES to develop the audio playback function in OpenHarmony, perform // Set wavFile_ to the descriptor of the file to be played. wavFile_ = fopen(path, "rb"); - (*bufferQueueItf)->RegisterCallback(bufferQueueItf, BuqqerQueueCallback, wavFile_); + (*bufferQueueItf)->RegisterCallback(bufferQueueItf, BufferQueueCallback, wavFile_); ``` -- GitLab