diff options
author | Henrik "Henke37" Andersson | 2019-10-10 03:25:59 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-10-11 18:10:46 +0200 |
commit | 1d9e7568fdd827024e6c458d30950e94968a830b (patch) | |
tree | e6e19a932881ad9addd94ef1d998d5e2c92bd707 /engines/hdb | |
parent | 5675a00d8fa2be55d4ff366b65cfd4c0721ab4fe (diff) | |
download | scummvm-rg350-1d9e7568fdd827024e6c458d30950e94968a830b.tar.gz scummvm-rg350-1d9e7568fdd827024e6c458d30950e94968a830b.tar.bz2 scummvm-rg350-1d9e7568fdd827024e6c458d30950e94968a830b.zip |
HDB: Have a return value if the needed codec isn't included in the build.
Diffstat (limited to 'engines/hdb')
-rw-r--r-- | engines/hdb/sound.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/hdb/sound.cpp b/engines/hdb/sound.cpp index d69618ace3..33c3540d61 100644 --- a/engines/hdb/sound.cpp +++ b/engines/hdb/sound.cpp @@ -1857,11 +1857,15 @@ Audio::AudioStream* Song::createStream(Common::String fileName) { #ifdef USE_MAD Audio::SeekableAudioStream* audioStream = Audio::makeMP3Stream(stream, DisposeAfterUse::YES); return new Audio::LoopingAudioStream(audioStream, 0, DisposeAfterUse::YES); +#else + return nullptr; #endif } else { #ifdef USE_VORBIS Audio::SeekableAudioStream* audioStream = Audio::makeVorbisStream(stream, DisposeAfterUse::YES); return new Audio::LoopingAudioStream(audioStream, 0, DisposeAfterUse::YES); +#else + return nullptr; #endif } } |