Ticket #9037: scummvm-sci-musicfix.patch

File scummvm-sci-musicfix.patch, 807 bytes (added by m-kiewitz, 15 years ago)

SCI: Music/sound-engine fix

  • core.cpp

     
    3737
    3838#include "common/system.h"
    3939#include "common/timer.h"
     40#include "common/mutex.h"
    4041
    4142#include "sound/audiostream.h"
    4243#include "sound/mixer.h"
     
    551552                                    ** songs which are no longer
    552553                                    ** active.  */
    553554
     555        // We need to be left alone in here :)
     556        Common::StackLock lock(_mutex);
     557
    554558        /*      _dump_playing_list(this, "before");*/
    555559        freezeTime(); /* Store song delay time */
    556560
  • core.h

     
    188188        uint16 _audioRate;
    189189        Audio::SoundHandle _audioHandle;
    190190        Audio::AudioStream* getAudioStream(uint32 number, uint32 volume, int *sampleLen);
     191        Common::Mutex _mutex;
    191192};
    192193
    193194} // End of namespace Sci