HPL1: Fix build when not enabling Vorbis

This commit is contained in:
Le Philousophe 2023-02-22 13:52:33 +01:00
parent e4827ca924
commit 587b34794f

View File

@ -98,8 +98,10 @@ bool cOpenALSoundData::CreateFromFile(const tString &filename) {
static Audio::SeekableAudioStream *createAudioStream(Common::MemoryReadStream *data, uint format) {
switch (format) {
#ifdef USE_VORBIS
case kOgg:
return Audio::makeVorbisStream(data, DisposeAfterUse::YES);
#endif
case kWav:
return Audio::makeWAVStream(data, DisposeAfterUse::YES);
}