提交 1cd50ff6 编写于 作者: Q qingdao@qing

BuqqerQueueCallback should be BufferQueueCallback

Signed-off-by: Nqingdao@qing <qing@ohos.com.cn>
上级 5454c765
...@@ -82,7 +82,7 @@ To use OpenSL ES to develop the audio playback function in OpenHarmony, perform ...@@ -82,7 +82,7 @@ To use OpenSL ES to develop the audio playback function in OpenHarmony, perform
```c++ ```c++
FILE *wavFile_ = nullptr; 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; FILE *wavFile = (FILE *)pContext;
if (!feof(wavFile)) { if (!feof(wavFile)) {
...@@ -98,7 +98,7 @@ To use OpenSL ES to develop the audio playback function in OpenHarmony, perform ...@@ -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. // Set wavFile_ to the descriptor of the file to be played.
wavFile_ = fopen(path, "rb"); wavFile_ = fopen(path, "rb");
(*bufferQueueItf)->RegisterCallback(bufferQueueItf, BuqqerQueueCallback, wavFile_); (*bufferQueueItf)->RegisterCallback(bufferQueueItf, BufferQueueCallback, wavFile_);
``` ```
......
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
```c++ ```c++
FILE *wavFile_ = nullptr; 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; FILE *wavFile = (FILE *)pContext;
if (!feof(wavFile)) { if (!feof(wavFile)) {
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
//wavFile_ 需要设置为用户想要播放的文件描述符 //wavFile_ 需要设置为用户想要播放的文件描述符
wavFile_ = fopen(path, "rb"); wavFile_ = fopen(path, "rb");
(*bufferQueueItf)->RegisterCallback(bufferQueueItf, BuqqerQueueCallback, wavFile_); (*bufferQueueItf)->RegisterCallback(bufferQueueItf, BufferQueueCallback, wavFile_);
``` ```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册