mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-01 08:23:15 +00:00
Logic fix for MixedSoundDriver::init.
svn-id: r29953
This commit is contained in:
parent
019ad44822
commit
0cbff0fc42
@ -462,7 +462,7 @@ public:
|
||||
MixedSoundDriver(KyraEngine *vm, Audio::Mixer *mixer, Sound *music, Sound *sfx) : Sound(vm, mixer), _music(music), _sfx(sfx) {}
|
||||
~MixedSoundDriver() { delete _music; delete _sfx; }
|
||||
|
||||
bool init() { return _music->init() | _sfx->init(); }
|
||||
bool init() { return (_music->init() && _sfx->init()); }
|
||||
void process() { _music->process(); _sfx->process(); }
|
||||
|
||||
void setVolume(int volume) { _music->setVolume(volume); _sfx->setVolume(volume); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user