Use the SilentSound class for sfx/speech when sound output is not possible.

This should fix the hangs where the game waits for sfx/speech to finish in these cases.

svn-id: r15370
This commit is contained in:
Joost Peters 2004-10-01 14:48:49 +00:00
parent 9570bf38de
commit 6751e16da1

View File

@ -40,6 +40,9 @@ Sound::~Sound() {
}
Sound *Sound::giveSound(SoundMixer *mixer, QueenEngine *vm, uint8 compression) {
if (!mixer->isReady())
return new SilentSound(mixer, vm);
switch(compression) {
case COMPRESSION_NONE:
return new SBSound(mixer, vm);