mirror of https://github.com/axmolengine/axmol.git
fix compile issue without alsoft
This commit is contained in:
parent
da2ec96fd8
commit
a3b208075b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue