From ccc4bcac63caad4618b54b810e06ac787fd2c338 Mon Sep 17 00:00:00 2001 From: halx99 Date: Mon, 24 Aug 2020 19:04:08 +0800 Subject: [PATCH] Update al format enum --- 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 e9d94636aa..92f3104b67 100644 --- a/cocos/audio/src/AudioCache.cpp +++ b/cocos/audio/src/AudioCache.cpp @@ -155,7 +155,7 @@ void AudioCache::readDataTask(unsigned int selfId) _format = channelCount > 1 ? AL_FORMAT_STEREO_DOUBLE_EXT : AL_FORMAT_MONO_DOUBLE_EXT; break; case AUDIO_SOURCE_FORMAT::MULAW: - _format = channelCount > 1 ? AL_FORMAT_STEREO_MULAW_EXT : AL_FORMAT_MONO_MULAW_EXT; + _format = channelCount > 1 ? AL_FORMAT_STEREO_MULAW : AL_FORMAT_MONO_MULAW; break; case AUDIO_SOURCE_FORMAT::ALAW: _format = channelCount > 1 ? AL_FORMAT_STEREO_ALAW_EXT : AL_FORMAT_MONO_ALAW_EXT;