mirror of
https://github.com/smallmain/cocos-enhance-kit.git
synced 2025-11-10 15:15:24 +00:00
[engine] [cocos2d-x] [jsb-adapter] 适配引擎 v2.4.12 版本
This commit is contained in:
@@ -28,6 +28,7 @@ THE SOFTWARE.
|
||||
#include "audio/android/IAudioPlayer.h"
|
||||
#include "audio/android/OpenSLHelper.h"
|
||||
#include "audio/android/PcmData.h"
|
||||
#include "audio/android/utils/Compat.h"
|
||||
|
||||
#include <mutex>
|
||||
#include <condition_variable>
|
||||
@@ -54,7 +55,7 @@ private:
|
||||
|
||||
bool enqueue();
|
||||
|
||||
void bqFetchBufferCallback(SLAndroidSimpleBufferQueueItf bq);
|
||||
void bqFetchBufferCallback(CCSLBufferQueueItf bq);
|
||||
|
||||
void pause();
|
||||
void resume();
|
||||
@@ -66,7 +67,7 @@ private:
|
||||
SLObjectItf _playObj;
|
||||
SLPlayItf _playItf;
|
||||
SLVolumeItf _volumeItf;
|
||||
SLAndroidSimpleBufferQueueItf _bufferQueueItf;
|
||||
CCSLBufferQueueItf _bufferQueueItf;
|
||||
|
||||
int _numChannels;
|
||||
int _sampleRate;
|
||||
|
||||
Reference in New Issue
Block a user