From a3b208075b1729e9a21201a592f0a79f245f9d7e Mon Sep 17 00:00:00 2001 From: halx99 Date: Thu, 13 Aug 2020 00:41:30 +0800 Subject: [PATCH] fix compile issue without alsoft --- cocos/audio/src/AudioCache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/audio/src/AudioCache.cpp b/cocos/audio/src/AudioCache.cpp index 9716e22503..c4316578c1 100644 --- a/cocos/audio/src/AudioCache.cpp +++ b/cocos/audio/src/AudioCache.cpp @@ -166,9 +166,9 @@ void AudioCache::readDataTask(unsigned int selfId) case AUDIO_SOURCE_FORMAT::IMA_ADPCM: _format = channelCount > 1 ? AL_FORMAT_STEREO_IMA4 : AL_FORMAT_MONO_IMA4; break; + #endif default: assert(false); } -#endif _sampleRate = (ALsizei)sampleRate; _duration = 1.0f * totalFrames / sampleRate;