fix compile issue without alsoft

This commit is contained in:
halx99 2020-08-13 00:41:30 +08:00 committed by GitHub
parent da2ec96fd8
commit a3b208075b
1 changed files with 1 additions and 1 deletions

View File

@ -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;