[Scummvm-git-logs] scummvm master -> 587b34794fa8ee688c011ab71c93c3b56c10cee4

lephilousophe noreply at scummvm.org
Wed Feb 22 12:53:20 UTC 2023


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
587b34794f HPL1: Fix build when not enabling Vorbis


Commit: 587b34794fa8ee688c011ab71c93c3b56c10cee4
    https://github.com/scummvm/scummvm/commit/587b34794fa8ee688c011ab71c93c3b56c10cee4
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2023-02-22T13:53:04+01:00

Commit Message:
HPL1: Fix build when not enabling Vorbis

Changed paths:
    engines/hpl1/engine/impl/OpenALSoundData.cpp


diff --git a/engines/hpl1/engine/impl/OpenALSoundData.cpp b/engines/hpl1/engine/impl/OpenALSoundData.cpp
index bc33a40ae5b..828754bcacb 100644
--- a/engines/hpl1/engine/impl/OpenALSoundData.cpp
+++ b/engines/hpl1/engine/impl/OpenALSoundData.cpp
@@ -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);
 	}




More information about the Scummvm-git-logs mailing list