mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-21 19:51:49 +00:00
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:
parent
9570bf38de
commit
6751e16da1
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user